[mutter] wayland/surface: Send buffer release events immediately
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland/surface: Send buffer release events immediately
- Date: Thu, 28 Sep 2017 13:58:27 +0000 (UTC)
commit 4e7405aca9fba909e994e999c0be3fe38c4eccb5
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Sep 26 11:28:44 2017 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index ddca18f..6f9df37 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -462,7 +462,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]