Tiling2: Fixed error messages with ignored windows.

This commit is contained in:
Tom Hacohen 2014-01-17 12:29:33 +00:00
parent 2f80f460e4
commit d03fb0a0f8
1 changed files with 3 additions and 2 deletions

View File

@ -428,9 +428,10 @@ _add_client(E_Client *ec)
/* If focused is NULL, it should return the root. */
Window_Tree *parent = tiling_window_tree_client_find(_G.tinfo->tree,
ec_focused);
if (!parent)
if (!parent && (ec_focused != ec))
{
if (_G.tinfo->tree && ec_focused)
Client_Extra *extra_focused = eina_hash_find(_G.client_extras, &ec_focused);
if (_G.tinfo->tree && extra_focused && !is_ignored_window(extra_focused))
{
ERR("Couldn't find tree item for focused client %p. Using root..",
e_client_focused_get());