From d68ee26ff504da6a130f1d6d94c82bc0aebf4768 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 12 Sep 2022 16:12:52 -0500 Subject: [PATCH] screen-share: Copy the damage region instead of intersecting it The region has already been intersected with the output's region before it was passed to us. Signed-off-by: Derek Foreman --- compositor/screen-share.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/screen-share.c b/compositor/screen-share.c index 44be600e..6748f726 100644 --- a/compositor/screen-share.c +++ b/compositor/screen-share.c @@ -854,7 +854,7 @@ shared_output_repainted(struct wl_listener *listener, void *data) } else { /* Damage in output coordinates */ pixman_region32_init(&damage); - pixman_region32_intersect(&damage, &so->output->region, current_damage); + pixman_region32_copy(&damage, current_damage); pixman_region32_translate(&damage, -so->output->x, -so->output->y); }