aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-19 17:55:16 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-19 17:55:16 -0500
commitb88f06e70a62722e70855772dcfa5b20b3a10291 (patch)
tree1e57c24777f3ab453e7dcdd4aea94dc0667cbd90 /sway/tree/layout.c
parentMerge branch 'focus-overhaul' of github.com:acrisci/sway into focus-overhaul (diff)
downloadsway-b88f06e70a62722e70855772dcfa5b20b3a10291.tar.gz
sway-b88f06e70a62722e70855772dcfa5b20b3a10291.tar.zst
sway-b88f06e70a62722e70855772dcfa5b20b3a10291.zip
bugfix: get right layout box for rendering views
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c5
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,
531 return wrap_candidate; 531 return wrap_candidate;
532 } 532 }
533 swayc_t *next = get_swayc_in_output_direction(adjacent, dir, seat); 533 swayc_t *next = get_swayc_in_output_direction(adjacent, dir, seat);
534 if (next->children->length) { 534 if (next == NULL) {
535 return NULL;
536 }
537 if (next->children && next->children->length) {
535 // TODO consider floating children as well 538 // TODO consider floating children as well
536 return sway_seat_get_focus_inactive(seat, next); 539 return sway_seat_get_focus_inactive(seat, next);
537 } else { 540 } else {