mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Prevent stacked layout from crashing
This commit is contained in:
parent
e787a1581c
commit
9a08019267
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue