From 0f6bd69752fa0794f9ab2def1ddcca1e78a81645 Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Wed, 27 Nov 2019 13:43:02 -0300 Subject: [PATCH] screen-share: get previous_damage from data argument instead of weston_output Instead of getting previous_damage from the weston_output struct, get it from the frame_signal data argument. This will make possible to remove previous_damage from weston_output after we decide what to do with output->previous_damage usage in DRM backend. Signed-off-by: Leandro Ribeiro --- compositor/screen-share.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compositor/screen-share.c b/compositor/screen-share.c index d6fc1228..a2b21594 100644 --- a/compositor/screen-share.c +++ b/compositor/screen-share.c @@ -847,8 +847,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, - &so->output->previous_damage); + pixman_region32_intersect(&damage, &so->output->region, data); pixman_region32_translate(&damage, -so->output->x, -so->output->y); }