aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/workspace.c
diff options
context:
space:
mode:
authorZandr Martin <zandrmartin@gmail.com>2017-03-08 14:30:01 -0500
committerZandr Martin <zandrmartin@gmail.com>2017-03-08 14:30:01 -0500
commit8684b9eccaccd3e3818685603a0e329ef98ce227 (patch)
treec1dc71ec38be37fd8dfbd0661884e66330a683e2 /sway/commands/workspace.c
parent79468d2c74764c52d649b73bd7b6f228d83e7870 (diff)
fix workspace output assignment
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r--sway/commands/workspace.c2
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) {
"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];