From 4eb8d713112e76958d150de637ac83e2c95a4559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 26 Sep 2017 11:28:44 -0400 Subject: [PATCH] wayland/surface: Send buffer release events immediately Just queuing the buffer release event is prone to starvation, so send the release immediately. See https://lists.freedesktop.org/archives/wayland-devel/2017-September/035147.html for more detailed explanation. https://bugzilla.gnome.org/show_bug.cgi?id=788197 --- src/wayland/meta-wayland-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 5a0e0ee15..73e4d9f7d 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -448,7 +448,7 @@ meta_wayland_surface_unref_buffer_use_count (MetaWaylandSurface *surface) g_return_if_fail (buffer); if (surface->buffer_ref.use_count == 0 && buffer->resource) - wl_resource_queue_event (buffer->resource, WL_BUFFER_RELEASE); + wl_buffer_send_release (buffer->resource); } static void