Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl)
This commit is contained in:
parent
3d274cf2f9
commit
9713419327
|
@ -218,7 +218,7 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) {
|
||||||
if (!next)
|
if (!next)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (was_mapped) {
|
if (was_mapped || 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);
|
||||||
|
|
Loading…
Reference in New Issue