wayland: Stop accessing GdkDrag members

This commit is contained in:
Matthias Clasen 2018-07-15 16:06:55 -04:00
parent 5ce3520a2a
commit 298b6ee81a

View File

@ -374,9 +374,10 @@ _gdk_wayland_surface_drag_begin (GdkSurface *surface,
drag_wayland = g_object_new (GDK_TYPE_WAYLAND_DRAG,
"device", device,
"content", content,
"surface", surface,
NULL);
drag = GDK_DRAG (drag_wayland);
drag->source_surface = g_object_ref (surface);
drag_wayland->dnd_surface = create_dnd_surface (gdk_surface_get_display (surface));
drag_wayland->dnd_wl_surface = gdk_wayland_surface_get_wl_surface (drag_wayland->dnd_surface);