aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-06-01 14:07:55 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-06-01 14:07:55 -0400
commitedf37f27e1f169708729d40437063adc727bc5c3 (patch)
treedbf7e4e95cf473c9f74ad72223e87efd250e87dd
parentc47d6cb1c47e98a42a6a94bd37c179cabe3af914 (diff)
Fix cmd_workspace crash when a surface has focus
-rw-r--r--sway/commands/workspace.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c
index 958b3222..d15be571 100644
--- a/sway/commands/workspace.c
+++ b/sway/commands/workspace.c
@@ -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);
}