clients: use wl_surface_commit
Use wl_surface_commit() to commit the buffer attach, as Weston now
requires.
NOTE: GL-applications are broken until you upgrade to a version of Mesa
which does wl_surface_commit() on eglSwapBuffers(). If you have
Cairo-gl, this means all toytoolkit apps, too.
simple-shm and simple-touch OTOH will work now.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/clients/window.c b/clients/window.c
index 8ea453d..b2ad73a 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -852,6 +852,7 @@
wl_surface_damage(window->surface, 0, 0,
window->allocation.width,
window->allocation.height);
+ wl_surface_commit(window->surface);
window->server_allocation = window->allocation;
cairo_surface_destroy(window->cairo_surface);
window->cairo_surface = NULL;
@@ -2625,6 +2626,7 @@
wl_surface_attach(input->pointer_surface, buffer, 0, 0);
wl_surface_damage(input->pointer_surface, 0, 0,
image->width, image->height);
+ wl_surface_commit(input->pointer_surface);
}
static const struct wl_callback_listener pointer_surface_listener;