From 4c590afe7ea7d74b56c019d023b0e3f06e84be34 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 13 Jan 2014 16:32:21 +0000 Subject: [PATCH] Tiling2: Allow not finding a parent if it's the first window. --- src/modules/tiling/e_mod_tiling.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 33bc6dd..36c4ede 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -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; } -- 2.7.4