[clutter/wip/wayland: 45/45] test-wayland-surface: send WL_BUFFER_RELEASE events



commit 5e5fd042ac91b3851fa4164c199dac9bfac51a4a
Author: Robert Bragg <robert linux intel com>
Date:   Wed Feb 15 19:04:40 2012 +0000

    test-wayland-surface: send WL_BUFFER_RELEASE events

 tests/interactive/test-wayland-surface.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/interactive/test-wayland-surface.c b/tests/interactive/test-wayland-surface.c
index 04fa3f2..eb8c18a 100644
--- a/tests/interactive/test-wayland-surface.c
+++ b/tests/interactive/test-wayland-surface.c
@@ -265,6 +265,9 @@ tws_surface_detach_buffer (TWSSurface *surface)
 
   if (buffer)
     {
+      wl_resource_queue_event(&buffer->wayland_buffer->resource,
+                              WL_BUFFER_RELEASE);
+
       buffer->surfaces_attached_to =
         g_list_remove (buffer->surfaces_attached_to, surface);
       if (buffer->surfaces_attached_to == NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]