aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-06-01 19:22:13 +0100
committerLibravatar GitHub <noreply@github.com>2018-06-01 19:22:13 +0100
commitfd885d5779ef9aa408fa856a66fa7343ce01fa19 (patch)
treedbf7e4e95cf473c9f74ad72223e87efd250e87dd
parentMerge pull request #2081 from RedSoxFan/fix-2077 (diff)
parentFix cmd_workspace crash when a surface has focus (diff)
downloadsway-fd885d5779ef9aa408fa856a66fa7343ce01fa19.tar.gz
sway-fd885d5779ef9aa408fa856a66fa7343ce01fa19.tar.zst
sway-fd885d5779ef9aa408fa856a66fa7343ce01fa19.zip
Merge pull request #2083 from RedSoxFan/fix-1976
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) {
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}