From a48b7a66b027f1fceb74987dffa3824d186e2e7b Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 21 Jun 2020 14:34:24 +0000 Subject: [PATCH] Fix damage transform --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index b04365d..934f8bf 100644 --- a/src/main.c +++ b/src/main.c @@ -547,7 +547,9 @@ void wayvnc_process_frame(struct wayvnc* self) pixman_region_init_rect(&damage, damx, damy, damw, damh); pixman_region_init(&txdamage); wv_region_transform(&txdamage, &damage, - self->selected_output->transform, width, height); + self->selected_output->transform, + self->selected_output->width, + self->selected_output->height); wayvnc_damage_region(self, &txdamage); pixman_region_fini(&txdamage); pixman_region_fini(&damage);