diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-19 08:37:25 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-19 09:31:06 +0200 |
commit | fc1a8514154a338e1bf049069dfa6c2c9bf70c99 (patch) | |
tree | f0180256da22d1936efe96bb32f45d4d41d3c655 | |
parent | f24b3df980979d761bd59773f39d6d5f90d17913 (diff) |
wlr_surface: clear/fini buffers when appropriate
-rw-r--r-- | types/wlr_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 894ef899..3eae1131 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -230,6 +230,7 @@ static void surface_commit(struct wl_client *client, &buffer_damage, surface->current.width, surface->current.height); pixman_region32_union(&surface->current.buffer_damage, &surface->current.buffer_damage, &buffer_damage); + pixman_region32_fini(&buffer_damage); pixman_region32_intersect_rect(&surface->current.buffer_damage, &surface->current.buffer_damage, 0, 0, @@ -237,6 +238,7 @@ static void surface_commit(struct wl_client *client, pixman_region32_clear(&surface->pending.surface_damage); pixman_region32_clear(&surface->pending.buffer_damage); + pixman_region32_clear(&surface->pending.opaque); } // TODO: Commit other changes |