]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly close floating windows (Thanks eeemsi)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Dec 2012 17:51:17 +0000 (18:51 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Dec 2012 17:51:17 +0000 (18:51 +0100)
src/tree.c

index c90f58f181724b1d4b7a73678c7da6bdb3e3f77e..c398ee1d36f6722a35fe4b77fb569ea3350d86d4 100644 (file)
@@ -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);