summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-08-02 08:11:23 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-08-02 08:11:23 -0400
commitef8abd3c9ff82a483319bb39e33e15c4b2a6713f (patch)
treee6731aeedc2bd3f0e8c89d4d311c6088c627a47c
parentc16ca0d8a99e50871abd5ff9bfae8e4e4c609946 (diff)
parent2f9d1fdf3f007ef476f8b4b9e211c6f7f0c53000 (diff)
Merge pull request #2404 from RyanDwyer/move-containers-when-workspace-focused
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.");