diff options
author | Tony Crisci <[email protected]> | 2018-04-03 13:08:45 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2018-04-03 13:08:45 -0400 |
commit | 5f4761c4f40f5d6ec550ccabaebe0f990b6e8bbc (patch) | |
tree | 75f4da71db52745ffd833e0bb7b110ff0044c084 /sway/commands/workspace.c | |
parent | cba258e16ac4d37841b89f2b6a38e1056acae97b (diff) |
unify workspace create functions
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r-- | sway/commands/workspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index aa4096f7..a3702803 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 = container_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 = container_workspace_create(NULL, prev_workspace_name); } } else { char *name = join_args(argv, argc); if (!(ws = workspace_by_name(name))) { - ws = workspace_create(name); + ws = container_workspace_create(NULL, name); } free(name); } |