unify workspace create functions

This commit is contained in:
Tony Crisci 2018-04-03 13:08:45 -04:00
parent cba258e16a
commit 5f4761c4f4
5 changed files with 46 additions and 44 deletions

View file

@ -74,7 +74,7 @@ static struct cmd_results *cmd_move_container(struct sway_container *current,
ws = workspace_by_name(ws_name);
}
if (!ws) {
ws = workspace_create(ws_name ? ws_name : num_name);
ws = container_workspace_create(NULL, ws_name ? ws_name : num_name);
}
free(ws_name);
struct sway_container *old_parent = current->parent;