1
0
Fork 0

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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2726>
This commit is contained in:
msizanoen1 2023-04-08 14:51:21 +07:00 committed by Marge Bot
parent caca38106f
commit 231729b7f2

View file

@ -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;