aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/workspace.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-04 00:26:31 -0400
committerGitHub <noreply@github.com>2018-04-04 00:26:31 -0400
commitdee71871d7a37cfa1e53f3f1f60e6e93d21beda4 (patch)
tree1565ba1fede2da35b170353f895c34205216dc38 /sway/commands/workspace.c
parent3ea7d2d10ed0d6d68e5bf3dd4efac765eb2b0212 (diff)
parent62c79ef4510d4687e35deab177cf5114a138261f (diff)
Merge pull request #1702 from acrisci/split-containers2
properly close container containers
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r--sway/commands/workspace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c
index aa4096f7..958b3222 100644
--- a/sway/commands/workspace.c
+++ b/sway/commands/workspace.c
@@ -61,7 +61,7 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
if (strcasecmp(argv[0], "number") == 0) {
if (!(ws = workspace_by_number(argv[1]))) {
char *name = join_args(argv + 1, argc - 1);
- ws = workspace_create(name);
+ ws = workspace_create(NULL, name);
free(name);
}
} else if (strcasecmp(argv[0], "next") == 0) {
@@ -80,12 +80,12 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
ws = old_workspace;
} else if (prev_workspace_name
&& !(ws = workspace_by_name(prev_workspace_name))) {
- ws = workspace_create(prev_workspace_name);
+ ws = workspace_create(NULL, prev_workspace_name);
}
} else {
char *name = join_args(argv, argc);
if (!(ws = workspace_by_name(name))) {
- ws = workspace_create(name);
+ ws = workspace_create(NULL, name);
}
free(name);
}