mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 23:47:21 +01:00
Merge pull request #2404 from RyanDwyer/move-containers-when-workspace-focused
Allow moving containers when workspace itself is focused
This commit is contained in:
commit
8e60f6a732
1 changed files with 1 additions and 2 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue