diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-03-08 14:35:11 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-03-13 23:15:39 -0400 |
commit | e221d28df770f5b16ce6663d1ef6f5b66a5423f4 (patch) | |
tree | f1df1b5613a920d8bfb8ec278a32329afb01e55e | |
parent | 1c9fa55a0c71fef4b97a1f6a2d7e321d9a684d93 (diff) | |
download | sway-e221d28df770f5b16ce6663d1ef6f5b66a5423f4.zip sway-e221d28df770f5b16ce6663d1ef6f5b66a5423f4.tar.gz sway-e221d28df770f5b16ce6663d1ef6f5b66a5423f4.tar.bz2 |
Merge pull request #1105 from zandrmartin/fix-workspace-output-assignment0.12.1
fix workspace output assignment
-rw-r--r-- | sway/commands/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 7db1f33..b49a3a6 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]; |