[gtk/wayland-dnd-fixes: 2/3] wayland: Finish pending offer handling



commit 077ad7cb1d5fa7fe0382289d045b7c1e24834536
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 4 09:14:33 2020 -0500

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]