summaryrefslogtreecommitdiff
path: root/clients/dnd.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-08-23 18:14:06 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-08-29 17:12:36 -0400
commita8d1fa762efb501340bbde180b26b3fba76b7f60 (patch)
tree541b33a1cdbb03626a891f7de69a54c299b43535 /clients/dnd.c
parentf790c79ec71a371552077253539efeeb7966a9d1 (diff)
clients: Bring clients up to date
Diffstat (limited to 'clients/dnd.c')
-rw-r--r--clients/dnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/dnd.c b/clients/dnd.c
index 802d766b..f598e386 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -495,7 +495,8 @@ global_handler(struct display *display,
if (strcmp(interface, "wl_drag_offer") != 0)
return;
- offer = wl_drag_offer_create(display_get_display(display), id, 1);
+ offer = wl_display_bind(display_get_display(display),
+ id, &wl_drag_offer_interface);
dnd_offer = malloc(sizeof *dnd_offer);
if (dnd_offer == NULL)