diff options
author | wil <[email protected]> | 2016-12-22 18:46:00 +0100 |
---|---|---|
committer | wil <[email protected]> | 2016-12-29 20:31:30 +0100 |
commit | 0ff9fe9a7a18a5130b7c5e979ba980409f91b5f1 (patch) | |
tree | 08d523251534f637582f168b87223d9e536724db /sway/commands/focus.c | |
parent | bc3dc970265dab6e0305975791b5a266bbc390ca (diff) |
introduce next/prev as a direction for focus/move commands.
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r-- | sway/commands/focus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index 8442305f..0be442ca 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c @@ -46,6 +46,10 @@ struct cmd_results *cmd_focus(int argc, char **argv) { move_focus(MOVE_PARENT); } else if (strcasecmp(argv[0], "child") == 0) { move_focus(MOVE_CHILD); + } else if (strcasecmp(argv[0], "next") == 0) { + move_focus(MOVE_NEXT); + } else if (strcasecmp(argv[0], "prev") == 0) { + move_focus(MOVE_PREV); } else if (strcasecmp(argv[0], "mode_toggle") == 0) { int i; swayc_t *workspace = swayc_active_workspace(); |