diff options
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r-- | sway/commands/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index 3c47cfe7..a38687c1 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -120,7 +120,7 @@ struct cmd_results *cmd_move(int argc, char **argv) { | |||
120 | swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE); | 120 | swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE); |
121 | move_workspace_to(workspace, output); | 121 | move_workspace_to(workspace, output); |
122 | } | 122 | } |
123 | } else if (strcasecmp(argv[0], "scratchpad") == 0) { | 123 | } else if (strcasecmp(argv[0], "scratchpad") == 0 || (strcasecmp(argv[0], "to") == 0 && strcasecmp(argv[1], "scratchpad") == 0)) { |
124 | // move scratchpad ... | 124 | // move scratchpad ... |
125 | if (view->type != C_CONTAINER && view->type != C_VIEW) { | 125 | if (view->type != C_CONTAINER && view->type != C_VIEW) { |
126 | return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views."); | 126 | return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views."); |