From d03fb0a0f863c84048cf3b93f369ee66159eca5c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 17 Jan 2014 12:29:33 +0000 Subject: [PATCH] Tiling2: Fixed error messages with ignored windows. --- src/modules/tiling/e_mod_tiling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 89697333a..f7b5870d7 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -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());