From e221d28df770f5b16ce6663d1ef6f5b66a5423f4 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 8 Mar 2017 14:35:11 -0500 Subject: [PATCH] Merge pull request #1105 from zandrmartin/fix-workspace-output-assignment fix workspace output assignment --- sway/commands/workspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 7db1f332..b49a3a69 100644 --- a/sway/commands/workspace.c +++ b/sway/commands/workspace.c @@ -31,7 +31,7 @@ struct cmd_results *cmd_workspace(int argc, char **argv) { "Unable to allocate workspace output"); } wso->workspace = join_args(argv, argc - 2); - wso->output = strdup(argv[output_location]); + wso->output = strdup(argv[output_location + 1]); int i = -1; if ((i = list_seq_find(config->workspace_outputs, workspace_output_cmp_workspace, wso)) != -1) { struct workspace_output *old = config->workspace_outputs->items[i];