mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
caca38106f
commit
231729b7f2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user