diff options
author | Zandr Martin <zandrmartin@gmail.com> | 2017-03-08 14:30:01 -0500 |
---|---|---|
committer | Zandr Martin <zandrmartin@gmail.com> | 2017-03-08 14:30:01 -0500 |
commit | 8684b9eccaccd3e3818685603a0e329ef98ce227 (patch) | |
tree | c1dc71ec38be37fd8dfbd0661884e66330a683e2 /sway | |
parent | Update unsupported packages link in readme (diff) | |
download | sway-8684b9eccaccd3e3818685603a0e329ef98ce227.tar.gz sway-8684b9eccaccd3e3818685603a0e329ef98ce227.tar.zst sway-8684b9eccaccd3e3818685603a0e329ef98ce227.zip |
fix workspace output assignment
Diffstat (limited to 'sway')
-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 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) { | |||
31 | "Unable to allocate workspace output"); | 31 | "Unable to allocate workspace output"); |
32 | } | 32 | } |
33 | wso->workspace = join_args(argv, argc - 2); | 33 | wso->workspace = join_args(argv, argc - 2); |
34 | wso->output = strdup(argv[output_location]); | 34 | wso->output = strdup(argv[output_location + 1]); |
35 | int i = -1; | 35 | int i = -1; |
36 | if ((i = list_seq_find(config->workspace_outputs, workspace_output_cmp_workspace, wso)) != -1) { | 36 | if ((i = list_seq_find(config->workspace_outputs, workspace_output_cmp_workspace, wso)) != -1) { |
37 | struct workspace_output *old = config->workspace_outputs->items[i]; | 37 | struct workspace_output *old = config->workspace_outputs->items[i]; |