]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: When the container which was just closed is focused, we *do* need to focus...
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 1 Feb 2011 15:42:59 +0000 (16:42 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 1 Feb 2011 15:42:59 +0000 (16:42 +0100)
src/tree.c

index 165e1516c34edf65f1c826cec534b420d38ec2c1..58c5037013374cec952888229de9334c534140bb 100644 (file)
@@ -177,7 +177,7 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) {
     }
 
     if (was_mapped || con == focused) {
-        if (kill_window || !dont_kill_parent) {
+        if (kill_window || !dont_kill_parent || con == focused) {
             DLOG("focusing %p / %s\n", next, next->name);
             /* TODO: check if the container (or one of its children) was focused */
             con_focus(next);