avoid unfocused workspace closing if window in the workspace is closed
This commit is contained in:
parent
5bbb3b7ad4
commit
27093d146a
@ -2073,7 +2073,8 @@ static void con_on_remove_child(Con *con) {
|
||||
|
||||
/* For workspaces, close them only if they're not visible anymore */
|
||||
if (con->type == CT_WORKSPACE) {
|
||||
if (TAILQ_EMPTY(&(con->focus_head)) && !workspace_is_visible(con)) {
|
||||
if (TAILQ_EMPTY(&(con->focus_head)) && !workspace_is_visible(con) &&
|
||||
!config.empty_workspaces) {
|
||||
LOG("Closing old workspace (%p / %s), it is empty\n", con, con->name);
|
||||
yajl_gen gen = ipc_marshal_workspace_event("empty", con, NULL);
|
||||
tree_close_internal(con, DONT_KILL_WINDOW, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user