Bugfix: don’t focus the dockarea when closing a dock client
This commit is contained in:
parent
e0647b7fc2
commit
77640da9e7
|
@ -184,8 +184,13 @@ void tree_close(Con *con, bool kill_window, bool 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 */
|
||||
if (next->type == CT_DOCKAREA) {
|
||||
/* Instead of focusing the dockarea, we need to restore focus to the workspace */
|
||||
con_focus(con_descend_focused(output_get_content(next->parent)));
|
||||
} else {
|
||||
con_focus(next);
|
||||
}
|
||||
}
|
||||
else {
|
||||
DLOG("not focusing because we're not killing anybody");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue