From: Michael Stapelberg Date: Sun, 23 Dec 2012 17:51:17 +0000 (+0100) Subject: Bugfix: Correctly close floating windows (Thanks eeemsi) X-Git-Tag: 4.5~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24aa857a89876474bac5209428abb389bc1a9a75;p=i3%2Fi3 Bugfix: Correctly close floating windows (Thanks eeemsi) --- 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);