}
-static void _workspace_show(Con *workspace, bool changed_num_workspaces) {
+static void _workspace_show(Con *workspace) {
Con *current, *old = NULL;
/* safe-guard against showing i3-internal workspaces like __i3_scratch */
LOG("Closing old workspace (%p / %s), it is empty\n", old, old->name);
tree_close(old, DONT_KILL_WINDOW, false, false);
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}");
- changed_num_workspaces = true;
}
}
*
*/
void workspace_show(Con *workspace) {
- _workspace_show(workspace, false);
+ _workspace_show(workspace);
}
/*
Con *workspace;
bool changed_num_workspaces;
workspace = workspace_get(num, &changed_num_workspaces);
- _workspace_show(workspace, changed_num_workspaces);
+ _workspace_show(workspace);
}
/*