diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-04-18 15:50:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 15:50:54 -0400 |
commit | 17593ac5593c3bf2de824f26060aae90266f38bb (patch) | |
tree | c8f3e5dbcd26d0cde6f24db529b01ce6bfa50a2b /sway/commands | |
parent | 3c02aa17cab40a6990524a3dc3428fa8c5b6ec54 (diff) | |
parent | d4ac594264442a33ae06c69a1254951894f3c4e2 (diff) |
Merge pull request #1180 from wasamasa/feature-move-to-scratchpad
Feature move to scratchpad
Diffstat (limited to 'sway/commands')
-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) { swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE); move_workspace_to(workspace, output); } - } else if (strcasecmp(argv[0], "scratchpad") == 0) { + } else if (strcasecmp(argv[0], "scratchpad") == 0 || (strcasecmp(argv[0], "to") == 0 && strcasecmp(argv[1], "scratchpad") == 0)) { // move scratchpad ... if (view->type != C_CONTAINER && view->type != C_VIEW) { return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views."); |