diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-02-19 17:55:16 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-02-19 17:55:16 -0500 |
commit | b88f06e70a62722e70855772dcfa5b20b3a10291 (patch) | |
tree | 1e57c24777f3ab453e7dcdd4aea94dc0667cbd90 /sway/tree | |
parent | 359bab38e27276654c66fcd499fc0362086a8f00 (diff) |
bugfix: get right layout box for rendering views
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index be494791..3c78b6bc 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c @@ -531,7 +531,10 @@ static swayc_t *get_swayc_in_direction_under(swayc_t *container, return wrap_candidate; } swayc_t *next = get_swayc_in_output_direction(adjacent, dir, seat); - if (next->children->length) { + if (next == NULL) { + return NULL; + } + if (next->children && next->children->length) { // TODO consider floating children as well return sway_seat_get_focus_inactive(seat, next); } else { |