aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-02 20:59:44 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-02 20:59:44 +1000
commitd64c8df7ce79a959df340796448031bcaff7b668 (patch)
tree00e7b857a02d356214fd70e45159a4b0c2675a51
parentd6095588a143710d25be47577ea65517770e7a74 (diff)
downloadsway-d64c8df7ce79a959df340796448031bcaff7b668.tar.xz
Allow moving containers when workspace itself is focused
-rw-r--r--sway/commands/move.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 46ebcd83..702b42d9 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -59,8 +59,7 @@ static struct cmd_results *cmd_move_container(struct sway_container *current,
&& strcasecmp(argv[2], "workspace") == 0) {
// move container to workspace x
if (current->type == C_WORKSPACE) {
- // TODO: Wrap children in a container and move that
- return cmd_results_new(CMD_FAILURE, "move", "Unimplemented");
+ current = container_wrap_children(current);
} else if (current->type != C_CONTAINER && current->type != C_VIEW) {
return cmd_results_new(CMD_FAILURE, "move",
"Can only move containers and views.");