fix segfault when exitting cage with a child still present

This commit is contained in:
Sebastien DUMETZ 2026-03-18 12:01:02 +01:00
parent dcd64ae48b
commit e32200c9c0
2 changed files with 22 additions and 1 deletions

1
view.h
View file

@ -26,6 +26,7 @@ struct cg_view {
struct wl_list link; // server::views
struct wlr_surface *wlr_surface;
struct wlr_scene_tree *scene_tree;
struct wl_listener surface_destroy; /* nullifies scene_tree when wlroots frees it */
/* The view has a position in layout coordinates. */
int lx, ly;