Tiling2: Allow not finding a parent if it's the first window.

This commit is contained in:
Tom Hacohen 2014-01-13 16:32:21 +00:00
parent 5ad0edeb84
commit 4c590afe7e
1 changed files with 5 additions and 2 deletions

View File

@ -1260,8 +1260,11 @@ _add_client(E_Client *ec)
Window_Tree *new_node;
if (!parent)
{
ERR("Couldn't find tree item for focused client %p. Using root..",
e_client_focused_get());
if (_G.tinfo->tree)
{
ERR("Couldn't find tree item for focused client %p. Using root..",
e_client_focused_get());
}
parent = _G.tinfo->tree;
}