summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 23339b9d..74c19b5b 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -668,23 +668,23 @@ static bool cmd_workspace(struct sway_config *config, int argc, char **argv) {
668 if (argc == 1) { 668 if (argc == 1) {
669 // Handle workspace next/prev 669 // Handle workspace next/prev
670 if (strcmp(argv[0], "next") == 0) { 670 if (strcmp(argv[0], "next") == 0) {
671 workspace_next(); 671 workspace_switch(workspace_next());
672 return true; 672 return true;
673 } 673 }
674 674
675 if (strcmp(argv[0], "prev") == 0) { 675 if (strcmp(argv[0], "prev") == 0) {
676 workspace_next(); 676 workspace_switch(workspace_prev());
677 return true; 677 return true;
678 } 678 }
679 679
680 // Handle workspace output_next/prev 680 // Handle workspace output_next/prev
681 if (strcmp(argv[0], "next_on_output") == 0) { 681 if (strcmp(argv[0], "next_on_output") == 0) {
682 workspace_output_next(); 682 workspace_switch(workspace_output_next());
683 return true; 683 return true;
684 } 684 }
685 685
686 if (strcmp(argv[0], "prev_on_output") == 0) { 686 if (strcmp(argv[0], "prev_on_output") == 0) {
687 workspace_output_prev(); 687 workspace_switch(workspace_output_prev());
688 return true; 688 return true;
689 } 689 }
690 690