Fix cmd_workspace crash when a surface has focus

master
Brian Ashworth 7 years ago
parent c47d6cb1c4
commit edf37f27e1

@ -90,13 +90,6 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
free(name);
}
workspace_switch(ws);
current_container =
seat_get_focus(config->handler_context.seat);
struct sway_container *new_output = container_parent(current_container, C_OUTPUT);
if (config->mouse_warping && old_output != new_output) {
// TODO: Warp mouse
}
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}

Loading…
Cancel
Save