From caca38106f85709c200ff7767979c6f6c0a3c68b Mon Sep 17 00:00:00 2001 From: msizanoen1 Date: Sat, 8 Apr 2023 14:24:20 +0700 Subject: [PATCH] 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: --- src/compositor/meta-surface-actor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c index e140261f4..5f2e547a2 100644 --- a/src/compositor/meta-surface-actor.c +++ b/src/compositor/meta-surface-actor.c @@ -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);