]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 2 Jan 2011 17:08:45 +0000 (18:08 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 2 Jan 2011 17:08:45 +0000 (18:08 +0100)
src/tree.c

index 5b3f0df510c682a98cb5c9a8ae471cb80a870c1a..fd0a3ec71b1c8f22ca45325218cb5620f5ecb16d 100644 (file)
@@ -218,7 +218,7 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) {
     if (!next)
         return;
 
-    if (was_mapped) {
+    if (was_mapped || 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);