summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin+git@gmail.com>2016-05-28 18:18:46 -0500
committerLibravatar Zandr Martin <zandrmartin+git@gmail.com>2016-05-28 18:18:46 -0500
commitd291a29f305efdf0b739d48a23170bf6057ac3a6 (patch)
tree129d1b66f8be0afc1a486096bb31cd9ac458e87f /sway/commands.c
parentMerge pull request #675 from zandrmartin/add-workspace-sorting (diff)
downloadsway-d291a29f305efdf0b739d48a23170bf6057ac3a6.tar.gz
sway-d291a29f305efdf0b739d48a23170bf6057ac3a6.tar.zst
sway-d291a29f305efdf0b739d48a23170bf6057ac3a6.zip
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) {
2325 // Handle workspace next/prev 2325 // Handle workspace next/prev
2326 swayc_t *ws = NULL; 2326 swayc_t *ws = NULL;
2327 if (argc == 2) { 2327 if (argc == 2) {
2328 if (!(ws=workspace_by_number(argv[1]))) { 2328 if (!(ws = workspace_by_number(argv[1]))) {
2329 ws = workspace_create(argv[1]); 2329 ws = workspace_create(argv[1]);
2330 } 2330 }
2331 } else if (strcasecmp(argv[0], "next") == 0) { 2331 } else if (strcasecmp(argv[0], "next") == 0) {