Tiling2: Fix a bug with reordering of windows in some cases.

This commit is contained in:
Tom Hacohen 2014-01-16 11:32:53 +00:00
parent 156f6ff984
commit 4b2a53d1d4
1 changed files with 2 additions and 1 deletions

View File

@ -181,8 +181,9 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree *item)
EINA_INLIST_FOREACH_SAFE(item_keep->children, itr_safe, itr)
{
/* We are prepending to double-reverse the order. */
grand_parent->children =
eina_inlist_append_relative(grand_parent->children,
eina_inlist_prepend_relative(grand_parent->children,
EINA_INLIST_GET(itr), EINA_INLIST_GET(parent));
itr->weight *= parent->weight;
itr->parent = grand_parent;