diff --git a/sway/tree/container.c b/sway/tree/container.c index ebc60027..0a69f8d5 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -246,7 +246,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent, // Surfaces struct sway_node *current = seat_get_active_child(seat, parent); - return tiling_container_at(current, lx, ly, surface, sx, sy); + return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL; } /**