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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2022-09-12 16:12:52 -05:00 committed by Pekka Paalanen
parent 631b60b38b
commit d68ee26ff5

View File

@ -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);
}