wayland: Finish pending offer handling
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jan 2020 14:14:33 +0000 (09:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jan 2020 14:38:01 +0000 (09:38 -0500)
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

index 232948a2baf4bdbf0963da623336a0fff7310a8e..24573ae16fd8fc5d470785913322f62623505766 100644 (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);