From dec303bea6bdc31941c32074286521b742f932d4 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 4 Nov 2018 11:08:06 +0100 Subject: surface: fix wlr_surface_get_effective_damage to give surface coords Transforms were applied, but scale wasn't. --- rootston/output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rootston') diff --git a/rootston/output.c b/rootston/output.c index d7c5d821..674cda2d 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -700,8 +700,7 @@ static void damage_from_surface(struct wlr_surface *surface, int sx, int sy, pixman_region32_init(&damage); wlr_surface_get_effective_damage(surface, &damage); - wlr_region_scale(&damage, &damage, - wlr_output->scale / (float)surface->current.scale); + wlr_region_scale(&damage, &damage, wlr_output->scale); if (ceil(wlr_output->scale) > surface->current.scale) { // When scaling up a surface, it'll become blurry so we need to // expand the damage region -- cgit v1.2.3