From: Matthias Clasen Date: Sat, 4 Jan 2020 14:14:33 +0000 (-0500) Subject: wayland: Finish pending offer handling X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~462 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=709ebcedd4c356731b50e69967c3972b8f0c9f7f;p=gtk4.git 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. --- 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);