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.
This commit is contained in:
Matthias Clasen 2020-01-04 09:14:33 -05:00
parent 47e6b88555
commit 709ebcedd4

View File

@ -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);