|
|
@ -59,8 +59,7 @@ static struct cmd_results *cmd_move_container(struct sway_container *current,
|
|
|
|
&& strcasecmp(argv[2], "workspace") == 0) {
|
|
|
|
&& strcasecmp(argv[2], "workspace") == 0) {
|
|
|
|
// move container to workspace x
|
|
|
|
// move container to workspace x
|
|
|
|
if (current->type == C_WORKSPACE) {
|
|
|
|
if (current->type == C_WORKSPACE) {
|
|
|
|
// TODO: Wrap children in a container and move that
|
|
|
|
current = container_wrap_children(current);
|
|
|
|
return cmd_results_new(CMD_FAILURE, "move", "Unimplemented");
|
|
|
|
|
|
|
|
} else if (current->type != C_CONTAINER && current->type != C_VIEW) {
|
|
|
|
} else if (current->type != C_CONTAINER && current->type != C_VIEW) {
|
|
|
|
return cmd_results_new(CMD_FAILURE, "move",
|
|
|
|
return cmd_results_new(CMD_FAILURE, "move",
|
|
|
|
"Can only move containers and views.");
|
|
|
|
"Can only move containers and views.");
|
|
|
|