- Before the dequeuable checking, call the function wl_display_dispatch_queue_pending() in order to process the accumulated events(release) received from server.
Change-Id: I92abae0ae6fdda80367c2193d0926b5c1637d24e
}
TPL_OBJECT_UNLOCK(surface);
+ wl_display_dispatch_queue_pending((struct wl_display *)surface->display->native_handle,
+ wayland_display->wl_queue);
+
while (tbm_surface_queue_can_dequeue(
wayland_surface->tbm_queue, 0) == 0) {
/* Application sent all buffers to the server. Wait for server response. */