diff options
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c index 1a046da4..fc7a31b4 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -1011,6 +1011,10 @@ static swayc_t *get_swayc_in_output_direction(swayc_t *output, enum movement_dir | |||
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | swayc_t *get_swayc_in_direction_under(swayc_t *container, enum movement_direction dir, swayc_t *limit) { | 1013 | swayc_t *get_swayc_in_direction_under(swayc_t *container, enum movement_direction dir, swayc_t *limit) { |
1014 | if (dir == MOVE_CHILD) { | ||
1015 | return container->focused; | ||
1016 | } | ||
1017 | |||
1014 | swayc_t *parent = container->parent; | 1018 | swayc_t *parent = container->parent; |
1015 | if (dir == MOVE_PARENT) { | 1019 | if (dir == MOVE_PARENT) { |
1016 | if (parent->type == C_OUTPUT) { | 1020 | if (parent->type == C_OUTPUT) { |