Bugfix: Correctly revert focus to other floating windows when closing a floating window
Uncovered by the testsuite \o/
This commit is contained in:
@ -211,7 +211,7 @@ void workspace_show(const char *num) {
|
||||
/* check if this workspace is currently visible */
|
||||
if (!workspace_is_visible(old)) {
|
||||
LOG("Closing old workspace (%p / %s), it is empty\n", old, old->name);
|
||||
tree_close(old, DONT_KILL_WINDOW, false);
|
||||
tree_close(old, DONT_KILL_WINDOW, false, false);
|
||||
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}");
|
||||
changed_num_workspaces = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user