summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2016-05-28 11:08:57 -0400
committerDrew DeVault <[email protected]>2016-05-28 11:08:57 -0400
commita0315dc849aacd6e20cf57cb0cbb9ea1d91dce79 (patch)
treed43477a8ead345a7ca3d2f40c4335ec44352ec65 /sway/commands.c
parent907283d23094d406ffafca77c75569b2d9de9aaa (diff)
parent7df38ce9dade4708fb658bab88eb5eb4824d3556 (diff)
Merge pull request #675 from zandrmartin/add-workspace-sorting
Implement sort_workspaces() function for outputs.
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index fbdb5fb8..487b6a8e 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -2328,7 +2328,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) {
if (!(ws=workspace_by_number(argv[1]))) {
ws = workspace_create(argv[1]);
}
- }else if (strcasecmp(argv[0], "next") == 0) {
+ } else if (strcasecmp(argv[0], "next") == 0) {
ws = workspace_next();
} else if (strcasecmp(argv[0], "prev") == 0) {
ws = workspace_prev();
@@ -2343,7 +2343,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) {
}
}
} else {
- if (!(ws= workspace_by_name(argv[0]))) {
+ if (!(ws = workspace_by_name(argv[0]))) {
ws = workspace_create(argv[0]);
}
}