From: Michael Stapelberg Date: Sun, 14 Nov 2010 19:11:46 +0000 (+0100) Subject: don’t remove floating container twice (it’s already removed in con_detach) X-Git-Tag: tree-pr1~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0efb3737e83e4600a55007c9705c2e6a7cd1743;p=i3%2Fi3 don’t remove floating container twice (it’s already removed in con_detach) --- 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; }