From afed6da0e5f555003ace074bf627c9a7e1c14106 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 21 Mar 2012 20:14:50 +0100 Subject: [PATCH] Bugfix: Fix restart with for_window floating configuration (Thanks garga) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: #668 Calling tree_close with dont_kill_parent=true will avoid it from closing the workspace if it’s empty (and it’s temporarily empty, because 'floating disable' detaches, then re-attaches the window). --- src/floating.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/floating.c b/src/floating.c index 0637521f..96c09724 100644 --- a/src/floating.c +++ b/src/floating.c @@ -223,7 +223,7 @@ void floating_disable(Con *con, bool automatic) { /* 2: kill parent container */ TAILQ_REMOVE(&(con->parent->parent->floating_head), con->parent, floating_windows); TAILQ_REMOVE(&(con->parent->parent->focus_head), con->parent, focused); - tree_close(con->parent, DONT_KILL_WINDOW, false, false); + tree_close(con->parent, DONT_KILL_WINDOW, true, false); /* 3: re-attach to the parent of the currently focused con on the workspace * this floating con was on */ -- 2.39.5