aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-10-06 15:40:50 -0400
committerKirill Primak <vyivel@eclair.cafe>2022-10-10 08:09:55 +0000
commit99f55303aaac1f7f3e73041561d292e81c4eb95e (patch)
tree4c15e4f2080e6a0fea49e277cf3a024df36103ec
parentceff381747e185cd254c4f1529ef9f5939081c87 (diff)
wlr_scene: Apply source box translation
-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 872e0ed7..f786ca92 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -625,6 +625,7 @@ void wlr_scene_buffer_set_buffer_with_damage(struct wlr_scene_buffer *scene_buff
scene_buffer->transform, buffer->width, buffer->height);
pixman_region32_intersect_rect(&trans_damage, &trans_damage,
box.x, box.y, box.width, box.height);
+ pixman_region32_translate(&trans_damage, -box.x, -box.y);
struct wlr_scene *scene = scene_node_get_root(&scene_buffer->node);
struct wlr_scene_output *scene_output;