Bugfix: Re-assign dock windows to different workspaces when a workspace is deleted
Killing a dock client and having destroyed workspace 1 before (or the workspace on which the dock client was started when it was not auto-started) crashed i3 before this bugfix.
This commit is contained in:
@ -547,11 +547,12 @@ void show_workspace(xcb_connection_t *conn, int workspace) {
|
||||
}
|
||||
|
||||
t_ws->screen->current_workspace = workspace-1;
|
||||
|
||||
/* Unmap all clients of the current workspace */
|
||||
unmap_workspace(conn, c_ws);
|
||||
|
||||
Workspace *old_workspace = c_ws;
|
||||
c_ws = &workspaces[workspace-1];
|
||||
|
||||
/* Unmap all clients of the old workspace */
|
||||
unmap_workspace(conn, old_workspace);
|
||||
|
||||
current_row = c_ws->current_row;
|
||||
current_col = c_ws->current_col;
|
||||
LOG("new current row = %d, current col = %d\n", current_row, current_col);
|
||||
|
Reference in New Issue
Block a user