aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r--sway/commands/workspace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c
index 2858a284..bf6b7e04 100644
--- a/sway/commands/workspace.c
+++ b/sway/commands/workspace.c
@@ -215,8 +215,10 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
215 ws = workspace_by_name(argv[0]); 215 ws = workspace_by_name(argv[0]);
216 } else if (strcasecmp(argv[0], "next_on_output") == 0) { 216 } else if (strcasecmp(argv[0], "next_on_output") == 0) {
217 ws = workspace_output_next(current, create); 217 ws = workspace_output_next(current, create);
218 no_auto_back_and_forth = true;
218 } else if (strcasecmp(argv[0], "prev_on_output") == 0) { 219 } else if (strcasecmp(argv[0], "prev_on_output") == 0) {
219 ws = workspace_output_prev(current, create); 220 ws = workspace_output_prev(current, create);
221 no_auto_back_and_forth = true;
220 } else if (strcasecmp(argv[0], "back_and_forth") == 0) { 222 } else if (strcasecmp(argv[0], "back_and_forth") == 0) {
221 if (!seat->prev_workspace_name) { 223 if (!seat->prev_workspace_name) {
222 return cmd_results_new(CMD_INVALID, 224 return cmd_results_new(CMD_INVALID,