Commit 66ae09b6 authored by Robert Mader's avatar Robert Mader Committed by Jonas Ådahl

wayland/subsurface: Check if actor exists before unparenting

When we call the subsurface destructor the actor might be gone already.
Check first, like we do in other places, to avoid warnings.

parent 7b97c7b3
Pipeline #121424 passed with stages
in 11 minutes and 29 seconds
......@@ -304,9 +304,13 @@ meta_wayland_subsurface_class_init (MetaWaylandSubsurfaceClass *klass)
static void
unparent_actor (MetaWaylandSurface *surface)
ClutterActor *actor = CLUTTER_ACTOR (meta_wayland_surface_get_actor (surface));
ClutterActor *actor;
ClutterActor *parent_actor;
actor = CLUTTER_ACTOR (meta_wayland_surface_get_actor (surface));
if (!actor)
parent_actor = clutter_actor_get_parent (actor);
clutter_actor_remove_child (parent_actor, actor);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment