Tiling2: Bug fixing. Things seem to work now.

This commit is contained in:
Tom Hacohen 2014-01-14 14:43:53 +00:00
parent 1a2ffcd06e
commit e9779f70bf
1 changed files with 30 additions and 25 deletions

View File

@ -158,10 +158,13 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree *item)
if (!item_keep->children)
{
parent->client = item_keep->client;
parent->children = NULL;
free(item_keep);
}
else if (grand_parent)
else
{
if (grand_parent)
{
/* Update the children's parent. */
{
@ -186,10 +189,12 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree *item)
{
/* This is fine, as this is a child of the root so we allow two
* levels. */
item_keep->weight = 1.0;
}
parent->children = eina_inlist_remove(parent->children, EINA_INLIST_GET(item));
}
}
else
{
Window_Tree *itr;