diff options
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r-- | sway/commands/workspace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 6bfca506..c5d6435a 100644 --- a/sway/commands/workspace.c +++ b/sway/commands/workspace.c | |||
@@ -168,6 +168,11 @@ struct cmd_results *cmd_workspace(int argc, char **argv) { | |||
168 | "Can't run this command while there's no outputs connected."); | 168 | "Can't run this command while there's no outputs connected."); |
169 | } | 169 | } |
170 | 170 | ||
171 | if (root->fullscreen_global) { | ||
172 | return cmd_results_new(CMD_FAILURE, "workspace", | ||
173 | "Can't switch workspaces while fullscreen global"); | ||
174 | } | ||
175 | |||
171 | bool no_auto_back_and_forth = false; | 176 | bool no_auto_back_and_forth = false; |
172 | while (strcasecmp(argv[0], "--no-auto-back-and-forth") == 0) { | 177 | while (strcasecmp(argv[0], "--no-auto-back-and-forth") == 0) { |
173 | no_auto_back_and_forth = true; | 178 | no_auto_back_and_forth = true; |