Implement focus child command

The `focus child` command focuses the child container within the selected
container.
This commit is contained in:
Tony Crisci 2016-07-27 22:42:45 -04:00
parent 6d2b455727
commit 88b7cbe314
5 changed files with 12 additions and 5 deletions

View file

@ -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 ?