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/dnd.c b/clients/dnd.c
index 44c1541..4c070ff 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -269,6 +269,7 @@
 	wl_surface_attach(dnd_drag->drag_surface, buffer, 0, 0);
 	wl_surface_damage(dnd_drag->drag_surface, 0, 0,
 			  dnd_drag->width, dnd_drag->height);
+	wl_surface_commit(dnd_drag->drag_surface);
 }
 
 static void
@@ -450,6 +451,7 @@
 				  -dnd_drag->hotspot_x, -dnd_drag->hotspot_y);
 		wl_surface_damage(dnd_drag->drag_surface, 0, 0,
 				  dnd_drag->width, dnd_drag->height);
+		wl_surface_commit(dnd_drag->drag_surface);
 
 		dnd->current_drag = dnd_drag;
 		window_schedule_redraw(dnd->window);