From 88b7cbe314aaefc9cc96884a655a2d9aea84ee0a Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Wed, 27 Jul 2016 22:42:45 -0400 Subject: Implement `focus child` command The `focus child` command focuses the child container within the selected container. --- sway/focus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/focus.c') 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 ? -- cgit v1.2.3-54-g00ecf