gtkdnd: Use gdk_drag_begin_for_device()

We've got the pointer at hand there, just pass that instead of figuring
out from the client pointer.
This commit is contained in:
Carlos Garnacho 2015-11-19 20:00:23 +01:00
parent d221119d14
commit e3012dc9b3

View File

@ -2456,7 +2456,7 @@ gtk_drag_begin_internal (GtkWidget *widget,
source_widgets = g_slist_prepend (source_widgets, ipc_widget);
context = gdk_drag_begin (ipc_window, targets);
context = gdk_drag_begin_for_device (ipc_window, pointer, targets);
gdk_drag_context_set_device (context, pointer);
g_list_free (targets);