1
0
Fork 0

surface-actor: Use clutter_actor_get_paint_opacity

This prevents opaque regions from being subtracted from the unobscured
regions while MetaWindowActor is transparent (e.g. in window close
animation).

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2726>
This commit is contained in:
msizanoen1 2023-04-08 14:24:20 +07:00 committed by Marge Bot
parent 8b3c1f4b87
commit caca38106f

View file

@ -244,7 +244,7 @@ meta_surface_actor_cull_out (MetaCullable *cullable,
MetaSurfaceActor *surface_actor = META_SURFACE_ACTOR (cullable);
MetaSurfaceActorPrivate *priv =
meta_surface_actor_get_instance_private (surface_actor);
uint8_t opacity = clutter_actor_get_opacity (CLUTTER_ACTOR (cullable));
uint8_t opacity = clutter_actor_get_paint_opacity (CLUTTER_ACTOR (cullable));
set_unobscured_region (surface_actor, unobscured_region);
set_clip_region (surface_actor, clip_region);