1
0
Fork 0

wayland/actor-surface: Don't sync actor state for frozen actors

This ensures that sub-surfaces remain visible during the fade-out
animation of their window.

Fixes: be4bf8da9c ("wayland/surface: Keep applied sub-surface branch node linked up")
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3508
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3840>

(cherry picked from commit fab78d951a)
This commit is contained in:
Michel Dänzer 2024-06-25 11:58:52 +02:00 committed by Robert Mader
parent ce4a22b80f
commit ec5444f541

View file

@ -289,6 +289,11 @@ meta_wayland_actor_surface_sync_actor_state (MetaWaylandActorSurface *actor_surf
{
MetaWaylandActorSurfaceClass *actor_surface_class =
META_WAYLAND_ACTOR_SURFACE_GET_CLASS (actor_surface);
MetaWaylandActorSurfacePrivate *priv =
meta_wayland_actor_surface_get_instance_private (actor_surface);
if (priv->actor && meta_surface_actor_is_frozen (priv->actor))
return;
actor_surface_class->sync_actor_state (actor_surface);
}