diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-14 13:29:21 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-15 07:36:50 -0400 |
commit | d87c58416ba32c265b905b6eca8b2a59c6233af5 (patch) | |
tree | 1f3700e96778355b9b131c6543c4574072e4bd3c | |
parent | 72a33b736fdf2a03d45010182b16532df0753690 (diff) |
clip surface damage to surface size
-rw-r--r-- | types/wlr_surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 0861e2e8..a94ed4c5 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -132,6 +132,9 @@ static void surface_commit(struct wl_client *client, pixman_region32_union(&surface->current.surface_damage, &surface->current.surface_damage, &surface->pending.surface_damage); + pixman_region32_intersect_rect(&surface->current.surface_damage, + &surface->current.surface_damage, 0, 0, width / + surface->current.scale, height / surface->current.scale); pixman_region32_union(&surface->current.buffer_damage, &surface->current.buffer_damage, |