Tiling2: if can't find the parent, pass NULL, not the root.
authorTom Hacohen <tom@stosb.com>
Thu, 16 Jan 2014 12:39:12 +0000 (12:39 +0000)
committerTom Hacohen <tom@stosb.com>
Fri, 21 Feb 2014 09:15:07 +0000 (09:15 +0000)
src/modules/tiling/e_mod_tiling.c

index 36bd71e..3534ffa 100644 (file)
@@ -472,7 +472,6 @@ _add_client(E_Client *ec)
                    ERR("Couldn't find tree item for focused client %p. Using root..",
                          e_client_focused_get());
                 }
-              parent = _G.tinfo->tree;
            }
 
          _G.tinfo->tree = tiling_window_tree_add(_G.tinfo->tree, parent, ec, _G.split_type);