From f0efb3737e83e4600a55007c9705c2e6a7cd1743 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 14 Nov 2010 20:11:46 +0100 Subject: [PATCH] =?utf8?q?don=E2=80=99t=20remove=20floating=20container=20?= =?utf8?q?twice=20(it=E2=80=99s=20already=20removed=20in=20con=5Fdetach)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/tree.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/tree.c b/src/tree.c index 696f77cc..f7f7a759 100644 --- a/src/tree.c +++ b/src/tree.c @@ -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; } -- 2.39.5