From: Michael Stapelberg Date: Tue, 1 Feb 2011 15:42:59 +0000 (+0100) Subject: Bugfix: When the container which was just closed is focused, we *do* need to focus... X-Git-Tag: tree-pr2~68 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b01b1a7a64f70eaa344192b5e9fa76272414e8b;p=i3%2Fi3 Bugfix: When the container which was just closed is focused, we *do* need to focus another one (Thanks mseed) --- diff --git a/src/tree.c b/src/tree.c index 165e1516..58c50370 100644 --- a/src/tree.c +++ b/src/tree.c @@ -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);