diff --git a/src/win.c b/src/win.c index d97597e..2ad6e86 100644 --- a/src/win.c +++ b/src/win.c @@ -350,6 +350,8 @@ bool win_bind_mask(struct backend_base *b, struct managed_win *w) { pixman_region32_translate(®_bound_local, -w->g.x, -w->g.y); w->mask_image = b->ops->make_mask( b, (geometry_t){.width = w->g.width, .height = w->g.height}, ®_bound_local); + pixman_region32_fini(®_bound_local); + if (!w->mask_image) { return false; }