From 231729b7f2bfc79ab19bff13ecbfa69547956bc0 Mon Sep 17 00:00:00 2001 From: msizanoen1 Date: Sat, 8 Apr 2023 14:51:21 +0700 Subject: [PATCH] window-actor/wayland: Check opacity before subtracting background in cull This ensures that the background regions don't get marked as obscured if the window itself is transparent (e.g. in window animation). Part-of: --- src/compositor/meta-window-actor-wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compositor/meta-window-actor-wayland.c b/src/compositor/meta-window-actor-wayland.c index b465a793b..3c62e6a26 100644 --- a/src/compositor/meta-window-actor-wayland.c +++ b/src/compositor/meta-window-actor-wayland.c @@ -296,7 +296,8 @@ meta_window_actor_wayland_cull_out (MetaCullable *cullable, meta_cullable_cull_out_children (META_CULLABLE (self), unobscured_region, clip_region); - if (self->background) + if (self->background && + clutter_actor_get_paint_opacity (CLUTTER_ACTOR (self)) == 0xff) { cairo_region_t *background_cull_region;