diff options
author | Zandr Martin <zandrmartin+git@gmail.com> | 2016-05-28 18:18:46 -0500 |
---|---|---|
committer | Zandr Martin <zandrmartin+git@gmail.com> | 2016-05-28 18:18:46 -0500 |
commit | d291a29f305efdf0b739d48a23170bf6057ac3a6 (patch) | |
tree | 129d1b66f8be0afc1a486096bb31cd9ac458e87f /sway/commands.c | |
parent | a0315dc849aacd6e20cf57cb0cbb9ea1d91dce79 (diff) |
enforce workspace output assignents
when creating a new output, move to that output all extant workspaces
that are assigned to that output.
(unrelated) remove comment that was no longer applicable, fix spacing in
an assignment
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 487b6a8e..409afce9 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -2325,7 +2325,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) { // Handle workspace next/prev swayc_t *ws = NULL; if (argc == 2) { - if (!(ws=workspace_by_number(argv[1]))) { + if (!(ws = workspace_by_number(argv[1]))) { ws = workspace_create(argv[1]); } } else if (strcasecmp(argv[0], "next") == 0) { |