From 709ebcedd4c356731b50e69967c3972b8f0c9f7f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 4 Jan 2020 09:14:33 -0500 Subject: [PATCH] wayland: Finish pending offer handling When creating a new GdkDrop object on drag_enter, take pending source_actions and action into account. The code to store the pending actions was already there, they were just not passed on to the drop object when we create it. --- gdk/wayland/gdkdevice-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 232948a2ba..24573ae16f 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -1258,6 +1258,8 @@ data_device_enter (void *data, seat->pending_offer = NULL; seat->drop = gdk_wayland_drop_new (device, seat->drag, formats, dest_surface, offer, serial); + gdk_wayland_drop_set_source_actions (seat->drop, seat->pending_source_actions); + gdk_wayland_drop_set_action (seat->drop, seat->pending_action); gdk_wayland_seat_discard_pending_offer (seat);