From 4481c6b243e979ccee156c4e1a6dfbedcddc99c6 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 5 Aug 2024 14:46:30 -0400 Subject: [PATCH] wlr_scene: Force blend mode to PREMULTIPLIED if calculate visibility is disabled We do it here so WLR_SCENE_HIGHLIGHT_TRANSPARENT_REGION doesn't break --- types/scene/wlr_scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 46768aab..c38584db 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1242,7 +1242,8 @@ static void scene_entry_render(struct render_list_entry *entry, const struct ren .clip = &render_region, .alpha = &scene_buffer->opacity, .filter_mode = scene_buffer->filter_mode, - .blend_mode = pixman_region32_not_empty(&opaque) ? + .blend_mode = !data->output->scene->calculate_visibility || + pixman_region32_not_empty(&opaque) ? WLR_RENDER_BLEND_MODE_PREMULTIPLIED : WLR_RENDER_BLEND_MODE_NONE, });