summaryrefslogtreecommitdiff
path: root/clients/dnd.c
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-10-10 12:49:24 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-10-10 21:38:17 -0400
commitc9e00c06e97c74bc96951f4b81d08ecf4a01c705 (patch)
treedb624ceb8f1dd7757f236e7613e13c0f2a4e0c3d /clients/dnd.c
parent5df44de6a92ed3328292484963e038fe07bfb65f (diff)
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>
Diffstat (limited to 'clients/dnd.c')
-rw-r--r--clients/dnd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/dnd.c b/clients/dnd.c
index 44c15412..4c070ff4 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -269,6 +269,7 @@ data_source_target(void *data,
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_button_handler(struct widget *widget,
-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);