wayland: Ensure we have a drop-side GdkDragContext without pointer

This GdkDragContext should be created even if we don't have pointer
capabilities. Make it created on add_seat(), and only set the device
on wl_seat.capabilities, so it can be set to either master pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=741066
This commit is contained in:
Carlos Garnacho
2015-11-20 00:07:36 +01:00
parent 26f9d6b1c1
commit c4f5fd111c
3 changed files with 9 additions and 10 deletions

View File

@ -387,8 +387,7 @@ _gdk_wayland_window_drag_begin (GdkWindow *window,
}
GdkDragContext *
_gdk_wayland_drop_context_new (GdkDevice *device,
struct wl_data_device *data_device)
_gdk_wayland_drop_context_new (struct wl_data_device *data_device)
{
GdkWaylandDragContext *context_wayland;
GdkDragContext *context;
@ -397,8 +396,6 @@ _gdk_wayland_drop_context_new (GdkDevice *device,
context = GDK_DRAG_CONTEXT (context_wayland);
context->is_source = FALSE;
gdk_drag_context_set_device (context, device);
return context;
}