diff options
-rw-r--r-- | sway/input/seatop_default.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 62261c77..0f4d0385 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c | |||
@@ -56,6 +56,9 @@ static bool edge_is_external(struct sway_container *cont, enum wlr_edges edge) { | |||
56 | while (cont) { | 56 | while (cont) { |
57 | if (container_parent_layout(cont) == layout) { | 57 | if (container_parent_layout(cont) == layout) { |
58 | list_t *siblings = container_get_siblings(cont); | 58 | list_t *siblings = container_get_siblings(cont); |
59 | if (!siblings) { | ||
60 | return false; | ||
61 | } | ||
59 | int index = list_find(siblings, cont); | 62 | int index = list_find(siblings, cont); |
60 | if (index > 0 && (edge == WLR_EDGE_LEFT || edge == WLR_EDGE_TOP)) { | 63 | if (index > 0 && (edge == WLR_EDGE_LEFT || edge == WLR_EDGE_TOP)) { |
61 | return false; | 64 | return false; |