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 (cherry picked from commit 8cbcd35fdf9d0aa08e62405c89fe83522aa29cd3)
This commit is contained in:
parent
32d130ddf0
commit
d2747a1288
@ -275,7 +275,8 @@ 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;
|
||||||
|
|
||||||
return meta_wayland_surface_notify_subsurface_state_changed (parent);
|
if (parent)
|
||||||
|
return meta_wayland_surface_notify_subsurface_state_changed (parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
static double
|
static double
|
||||||
|
Loading…
x
Reference in New Issue
Block a user