forked from enlightenment/enlightenment
Tiling2: Fix a bug with reordering of windows in some cases.
This commit is contained in:
parent
156f6ff984
commit
4b2a53d1d4
|
@ -181,8 +181,9 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree *item)
|
||||||
|
|
||||||
EINA_INLIST_FOREACH_SAFE(item_keep->children, itr_safe, itr)
|
EINA_INLIST_FOREACH_SAFE(item_keep->children, itr_safe, itr)
|
||||||
{
|
{
|
||||||
|
/* We are prepending to double-reverse the order. */
|
||||||
grand_parent->children =
|
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));
|
EINA_INLIST_GET(itr), EINA_INLIST_GET(parent));
|
||||||
itr->weight *= parent->weight;
|
itr->weight *= parent->weight;
|
||||||
itr->parent = grand_parent;
|
itr->parent = grand_parent;
|
||||||
|
|
Loading…
Reference in New Issue