Bugfix: When the container which was just closed is focused, we *do* need to focus another one (Thanks mseed)

This commit is contained in:
Michael Stapelberg 2011-02-01 16:42:59 +01:00
parent dad7c0da00
commit 9b01b1a7a6
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) {
} }
if (was_mapped || con == focused) { 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); DLOG("focusing %p / %s\n", next, next->name);
/* TODO: check if the container (or one of its children) was focused */ /* TODO: check if the container (or one of its children) was focused */
con_focus(next); con_focus(next);