aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorZandr Martin <zandrmartin+git@gmail.com>2016-05-28 18:18:46 -0500
committerZandr Martin <zandrmartin+git@gmail.com>2016-05-28 18:18:46 -0500
commitd291a29f305efdf0b739d48a23170bf6057ac3a6 (patch)
tree129d1b66f8be0afc1a486096bb31cd9ac458e87f /sway/commands.c
parenta0315dc849aacd6e20cf57cb0cbb9ea1d91dce79 (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.c2
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) {