aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-03 11:55:46 +0100
committeremersion <contact@emersion.fr>2018-07-04 19:16:16 +0100
commit515d68231252194a8c230d26658fd316179704c1 (patch)
treed86694ce602f1656a939aac8f5b06e1875c2f7d7
parente665a7412212d8cbf241ba90f6828688d8a48f9e (diff)
surface: fix damage when moving subsurfaces with scale > 1
-rw-r--r--types/wlr_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c
index 87286d6d..973686ef 100644
--- a/types/wlr_surface.c
+++ b/types/wlr_surface.c
@@ -809,10 +809,10 @@ static void subsurface_role_committed(struct wlr_surface *surface, void *data) {
pixman_region32_union_rect(&surface->buffer_damage,
&surface->buffer_damage,
dx * surface->previous.scale, dy * surface->previous.scale,
- surface->previous.width, surface->previous.height);
+ surface->previous.buffer_width, surface->previous.buffer_height);
pixman_region32_union_rect(&surface->buffer_damage,
&surface->buffer_damage, 0, 0,
- surface->current.width, surface->current.height);
+ surface->current.buffer_width, surface->current.buffer_height);
}
}