summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-07-03 20:58:31 +0200
committerMatthias Clasen <mclasen@redhat.com>2018-07-12 13:02:42 +0200
commitf69bb2fb2bff81cc779a8c771a7150e9b8768fa9 (patch)
treeaef5d23d2b5c1db440fa36c0c7f34d3ea96f5202 /gdk
parentdb0b9f61ae542fe0087c3df48f89b5367e708e5d (diff)
downloadgtk+-f69bb2fb2bff81cc779a8c771a7150e9b8768fa9.tar.gz
wayland: set a cursor when starting a drag
Otherwise, we wont have one.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/wayland/gdkdnd-wayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c
index c889e9ee40..195b86b76b 100644
--- a/gdk/wayland/gdkdnd-wayland.c
+++ b/gdk/wayland/gdkdnd-wayland.c
@@ -380,6 +380,7 @@ _gdk_wayland_surface_drag_begin (GdkSurface *surface,
GdkDrag *drag;
GdkSeat *seat;
GdkWaylandDisplay *display_wayland;
+ GdkCursor *cursor;
display_wayland = GDK_WAYLAND_DISPLAY (gdk_device_get_display (device));
seat = gdk_device_get_seat (device);
@@ -411,6 +412,9 @@ _gdk_wayland_surface_drag_begin (GdkSurface *surface,
drag_wayland->dnd_wl_surface,
_gdk_wayland_display_get_serial (display_wayland));
+ cursor = gdk_drag_get_cursor (drag, gdk_drag_get_selected_action (drag));
+ gdk_drag_set_cursor (drag, cursor);
+
gdk_seat_ungrab (seat);
return drag;