aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_compositor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c
index cb026783..f6bbcd02 100644
--- a/types/wlr_compositor.c
+++ b/types/wlr_compositor.c
@@ -386,6 +386,7 @@ static void surface_update_opaque_region(struct wlr_surface *surface) {
}
if (surface->opaque) {
+ pixman_region32_fini(&surface->opaque_region);
pixman_region32_init_rect(&surface->opaque_region,
0, 0, surface->current.width, surface->current.height);
return;