[PATCH weston 2/3] tests: Make test clients commit their surfaces when creating them

Jonas Ådahl jadahl at gmail.com
Wed Nov 14 14:39:52 PST 2012


Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 tests/test-client.c      |    1 +
 tests/test-text-client.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/test-client.c b/tests/test-client.c
index 168c663..8ef9584 100644
--- a/tests/test-client.c
+++ b/tests/test-client.c
@@ -403,6 +403,7 @@ create_surface(int fd, struct display *display)
 	display->surface = surface;
 	surface->surface = wl_compositor_create_surface(display->compositor);
 	wl_surface_add_listener(surface->surface, &surface_listener, surface);
+	wl_surface_commit(surface->surface);
 
 	wl_display_flush(display->display);
 
diff --git a/tests/test-text-client.c b/tests/test-text-client.c
index 7342381..c684674 100644
--- a/tests/test-text-client.c
+++ b/tests/test-text-client.c
@@ -166,6 +166,7 @@ create_surface(int fd, struct display *display)
 	int len;
 
 	display->surface = wl_compositor_create_surface(display->compositor);
+	wl_surface_commit(display->surface);
 	wl_display_flush(display->display);
 
 	len = snprintf(buf, sizeof buf, "surface %d\n",
-- 
1.7.10.4



More information about the wayland-devel mailing list