Prevent stacked layout from crashing

master
William Wold 6 years ago
parent e787a1581c
commit 9a08019267

@ -246,7 +246,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
// Surfaces // Surfaces
struct sway_node *current = seat_get_active_child(seat, parent); 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…
Cancel
Save