From: Michael Stapelberg Date: Sun, 2 Jan 2011 17:08:45 +0000 (+0100) Subject: Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl) X-Git-Tag: tree-pr2~145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9713419327ef6056ae9c03b03a66261a8171704c;p=i3%2Fi3 Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl) --- diff --git a/src/tree.c b/src/tree.c index 5b3f0df5..fd0a3ec7 100644 --- a/src/tree.c +++ b/src/tree.c @@ -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);