diff options
author | Benjamin Otte <otte@redhat.com> | 2018-05-31 21:24:08 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-06-18 23:49:52 +0200 |
commit | 018a17fb8efb950cd5db9021e3271a4017a71c9d (patch) | |
tree | cfa74d8ff9ff2aa53398dee29184cad9514b14a7 /gdk/x11 | |
parent | 895f381fd590ab9c2eebdf3f5d05156f21f15009 (diff) | |
download | gtk+-018a17fb8efb950cd5db9021e3271a4017a71c9d.tar.gz |
x11: Pass the drag source when creating a drop context
Diffstat (limited to 'gdk/x11')
-rw-r--r-- | gdk/x11/gdkdnd-x11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index 2ab055691f..96993d74ec 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -1699,6 +1699,7 @@ xdnd_enter_filter (GdkSurface *surface, GdkX11Display *display_x11; GdkDragContext *context; GdkX11DragContext *context_x11; + GdkDragContext *drag; GdkSeat *seat; gint i; Atom type; @@ -1782,8 +1783,11 @@ xdnd_enter_filter (GdkSurface *surface, print_target_list (content_formats); #endif /* G_ENABLE_DEBUG */ + drag = gdk_drag_context_find (display, source_surface, GDK_SURFACE_XID (surface)); + context_x11 = g_object_new (GDK_TYPE_X11_DRAG_CONTEXT, "device", gdk_seat_get_pointer (seat), + "drag", drag, "formats", content_formats, "surface", surface, NULL); |