aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/workspace.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-06-01 14:07:55 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-06-01 14:07:55 -0400
commitedf37f27e1f169708729d40437063adc727bc5c3 (patch)
treedbf7e4e95cf473c9f74ad72223e87efd250e87dd /sway/commands/workspace.c
parentMerge pull request #2081 from RedSoxFan/fix-2077 (diff)
downloadsway-edf37f27e1f169708729d40437063adc727bc5c3.tar.gz
sway-edf37f27e1f169708729d40437063adc727bc5c3.tar.zst
sway-edf37f27e1f169708729d40437063adc727bc5c3.zip
Fix cmd_workspace crash when a surface has focus
Diffstat (limited to 'sway/commands/workspace.c')
-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) {
90 free(name); 90 free(name);
91 } 91 }
92 workspace_switch(ws); 92 workspace_switch(ws);
93 current_container =
94 seat_get_focus(config->handler_context.seat);
95 struct sway_container *new_output = container_parent(current_container, C_OUTPUT);
96
97 if (config->mouse_warping && old_output != new_output) {
98 // TODO: Warp mouse
99 }
100 } 93 }
101 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 94 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
102} 95}