From: Tom Hacohen Date: Thu, 16 Jan 2014 11:32:53 +0000 (+0000) Subject: Tiling2: Fix a bug with reordering of windows in some cases. X-Git-Tag: upstream/0.19.99~1498^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b2a53d1d4cd5abf9f29db6b7325f81c93f25424;p=platform%2Fupstream%2Fenlightenment.git Tiling2: Fix a bug with reordering of windows in some cases. --- diff --git a/src/modules/tiling/window_tree.c b/src/modules/tiling/window_tree.c index 41ee12e..d4aa500 100644 --- a/src/modules/tiling/window_tree.c +++ b/src/modules/tiling/window_tree.c @@ -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;