forked from enlightenment/enlightenment
Tiling2: Better handle parent == NULL case.
This commit is contained in:
parent
3804d5165a
commit
ceb1cc414e
|
@ -91,6 +91,11 @@ tiling_window_tree_add(Window_Tree *root, Window_Tree *parent, E_Client *client,
|
||||||
else if (!parent)
|
else if (!parent)
|
||||||
{
|
{
|
||||||
parent = root;
|
parent = root;
|
||||||
|
parent_split_type = _tiling_window_tree_split_type_get(parent);
|
||||||
|
if ((parent_split_type != split_type) && (parent->children))
|
||||||
|
{
|
||||||
|
parent = (Window_Tree *) parent->children;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parent_split_type = _tiling_window_tree_split_type_get(parent);
|
parent_split_type = _tiling_window_tree_split_type_get(parent);
|
||||||
|
|
Loading…
Reference in New Issue