[gtk/dnd-gestures-2: 65/66] wayland: Finish pending offer handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 65/66] wayland: Finish pending offer handling
- Date: Sat, 4 Jan 2020 14:32:50 +0000 (UTC)
commit 221028c382bad87e74d2f2198ee256e27f1e35a3
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.
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]