From 87fe13a9faa6cb3bb243426f03812f2011f6d2ec Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Wed, 9 Aug 2017 15:58:22 -0400 Subject: release shm buffer after uploading --- types/wlr_surface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_surface.c b/types/wlr_surface.c index c6011e86..f4480bf4 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -55,6 +55,7 @@ static void surface_commit(struct wl_client *client, } else { uint32_t format = wl_shm_buffer_get_format(buffer); wlr_texture_upload_shm(surface->texture, format, buffer); + wl_resource_queue_event(surface->pending_buffer, WL_BUFFER_RELEASE); } } } -- cgit v1.2.3