mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
wayland/subsurface: Add check for parent surface
Just as we do in similar places. This avoids crashes under certain circumstances. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1411
This commit is contained in:
parent
309bee856d
commit
8cbcd35fdf
@ -275,6 +275,7 @@ meta_wayland_subsurface_notify_subsurface_state_changed (MetaWaylandSurfaceRole
|
|||||||
meta_wayland_surface_role_get_surface (surface_role);
|
meta_wayland_surface_role_get_surface (surface_role);
|
||||||
MetaWaylandSurface *parent = surface->sub.parent;
|
MetaWaylandSurface *parent = surface->sub.parent;
|
||||||
|
|
||||||
|
if (parent)
|
||||||
return meta_wayland_surface_notify_subsurface_state_changed (parent);
|
return meta_wayland_surface_notify_subsurface_state_changed (parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user