From 24aa857a89876474bac5209428abb389bc1a9a75 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 23 Dec 2012 18:51:17 +0100 Subject: [PATCH] Bugfix: Correctly close floating windows (Thanks eeemsi) --- src/tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tree.c b/src/tree.c index c90f58f1..c398ee1d 100644 --- a/src/tree.c +++ b/src/tree.c @@ -257,8 +257,7 @@ bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent, bool if (con_is_floating(con)) { if (con == focused) { DLOG("This is the focused container, i need to find another one to focus. I start looking at ws = %p\n", ws); - /* go down the focus stack as far as possible */ - next = con_next_focused(con); + next = con_next_focused(parent); dont_kill_parent = true; DLOG("Alright, focusing %p\n", next); -- 2.39.2