From 99f55303aaac1f7f3e73041561d292e81c4eb95e Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 6 Oct 2022 15:40:50 -0400 Subject: [PATCH] wlr_scene: Apply source box translation --- types/scene/wlr_scene.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 872e0ed79..f786ca923 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;