]> git.sur5r.net Git - i3/i3/commitdiff
don’t remove floating container twice (it’s already removed in con_detach)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Nov 2010 19:11:46 +0000 (20:11 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Nov 2010 19:11:46 +0000 (20:11 +0100)
src/tree.c

index 696f77ccebf31b4f28ecf474f4fb06876626d9a8..f7f7a759ff637c4d824e4121b3881c8035a1f1bb 100644 (file)
@@ -181,10 +181,7 @@ void tree_close(Con *con, bool kill_window) {
 
     if (con_is_floating(con)) {
         DLOG("Container was floating, killing floating container\n");
-
-        TAILQ_REMOVE(&(parent->parent->floating_head), parent, floating_windows);
-        TAILQ_REMOVE(&(parent->parent->focus_head), parent, focused);
-        tree_close(parent, false);
+        tree_close(parent, false, false);
         next = NULL;
     }