diff options
author | Drew DeVault <[email protected]> | 2016-07-28 07:26:37 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2016-07-28 07:26:37 -0400 |
commit | ee67c5bee34c4a98f8df3db68e92eaa55f1d579d (patch) | |
tree | 42bb6aced0f15f2d3f5ae4f5da02c1a9d6083dac /sway/commands.c | |
parent | d03266a77a3a07a8a7488bb425410a87a658d9b0 (diff) | |
parent | 88b7cbe314aaefc9cc96884a655a2d9aea84ee0a (diff) |
Merge pull request #791 from acrisci/feature/focus-child
Implement `focus child` command
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index c78c2660..d572afa0 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -864,6 +864,8 @@ static struct cmd_results *cmd_focus(int argc, char **argv) { move_focus(MOVE_DOWN); } else if (strcasecmp(argv[0], "parent") == 0) { move_focus(MOVE_PARENT); + } else if (strcasecmp(argv[0], "child") == 0) { + move_focus(MOVE_CHILD); } else if (strcasecmp(argv[0], "mode_toggle") == 0) { int i; swayc_t *workspace = swayc_active_workspace(); @@ -903,7 +905,7 @@ static struct cmd_results *cmd_focus(int argc, char **argv) { } } else { return cmd_results_new(CMD_INVALID, "focus", - "Expected 'focus <direction|parent|mode_toggle>' or 'focus output <direction|name>'"); + "Expected 'focus <direction|parent|child|mode_toggle>' or 'focus output <direction|name>'"); } return cmd_results_new(CMD_SUCCESS, NULL, NULL); } |