Tiling2: Fixed buy with deleting last vertical split.

This commit is contained in:
Tom Hacohen 2014-01-14 14:53:45 +00:00
parent e9779f70bf
commit 592dfb9dd2
1 changed files with 8 additions and 1 deletions

View File

@ -155,7 +155,14 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree *item)
break;
}
if (!item_keep->children)
if (!item_keep)
{
/* Special case of deleting the last vertical split item. */
free(item);
free(root);
return NULL;
}
else if (!item_keep->children)
{
parent->client = item_keep->client;
parent->children = NULL;