From e854a54e9631c405b26c08cf0f5d085a1b5949e6 Mon Sep 17 00:00:00 2001 From: minus Date: Tue, 25 Aug 2015 19:00:20 +0200 Subject: changed workspace_{outout_,}{next,prev} to return workspace so it can be reused for "move container to workspace next" --- sway/commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sway/commands.c') 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) { if (argc == 1) { // Handle workspace next/prev if (strcmp(argv[0], "next") == 0) { - workspace_next(); + workspace_switch(workspace_next()); return true; } if (strcmp(argv[0], "prev") == 0) { - workspace_next(); + workspace_switch(workspace_prev()); return true; } // Handle workspace output_next/prev if (strcmp(argv[0], "next_on_output") == 0) { - workspace_output_next(); + workspace_switch(workspace_output_next()); return true; } if (strcmp(argv[0], "prev_on_output") == 0) { - workspace_output_prev(); + workspace_switch(workspace_output_prev()); return true; } -- cgit v1.2.3