diff options
author | Tony Crisci <[email protected]> | 2016-07-27 22:42:45 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2016-07-27 22:48:46 -0400 |
commit | 88b7cbe314aaefc9cc96884a655a2d9aea84ee0a (patch) | |
tree | 293bdbf27966b01a31574f40eb83f4b6ab834ba1 /sway/focus.c | |
parent | 6d2b455727f7e3df1fc7241a39694bd843a92ed1 (diff) |
Implement `focus child` command
The `focus child` command focuses the child container within the selected
container.
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index c7737a1d..0f629e1e 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -72,7 +72,7 @@ bool move_focus(enum movement_direction direction) { return false; } else if (new_view->type == C_OUTPUT) { return set_focused_container(swayc_active_workspace_for(new_view)); - } else if (direction == MOVE_PARENT) { + } else if (direction == MOVE_PARENT || direction == MOVE_CHILD) { return set_focused_container(new_view); } else if (config->mouse_warping) { swayc_t *old_op = old_view->type == C_OUTPUT ? |