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:
parent
631b60b38b
commit
d68ee26ff5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user