Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl)

next
Michael Stapelberg 2011-01-02 18:08:45 +01:00
parent 3d274cf2f9
commit 9713419327
1 changed files with 1 additions and 1 deletions

View 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);