[PATCH wayland 2/2] server: use next serial in display_sync

Marek Chalupa mchqwerty at gmail.com
Mon Oct 27 01:14:41 PDT 2014


Display sync sends always the same serial (if nothing intervenes
and increases the serial for the sync).

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
 src/wayland-server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wayland-server.c b/src/wayland-server.c
index 674aeca..54284fa 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -717,7 +717,7 @@ display_sync(struct wl_client *client,
 		return;
 	}
 
-	serial = wl_display_get_serial(client->display);
+	serial = wl_display_next_serial(client->display);
 	wl_callback_send_done(callback, serial);
 	wl_resource_destroy(callback);
 }
-- 
1.9.3



More information about the wayland-devel mailing list