aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-09-03 18:39:16 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-09-03 18:42:17 -0400
commit35d94d779c36193109b61d9fdb49617a307272a6 (patch)
tree112627dc40064a19f6d2d4424e7a749074ed78b4
parentfd0b0276c9ecc159549acff48b932b83ec3b4f12 (diff)
wlr_scene: Consider screen position when culling background
-rw-r--r--types/scene/wlr_scene.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index d963e70a..dff664d2 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -1517,6 +1517,7 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
scene_node_opaque_region(node, x, y, &opaque);
pixman_region32_intersect(&opaque, &opaque, &node->visible);
+ pixman_region32_translate(&opaque, -scene_output->x, -scene_output->y);
wlr_region_scale(&opaque, &opaque, scene_output->output->scale);
pixman_region32_subtract(&background, &background, &opaque);
pixman_region32_fini(&opaque);