[gtk/dnd-gestures-2: 74/173] gdk: Make gdk_event_set_coords support dnd events



commit 308059223437af93ce7ee0518c32c20b7c1807dd
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 5 21:07:40 2020 -0500

    gdk: Make gdk_event_set_coords support dnd events
    
    GTK event propagation code relies on this working.

 gdk/gdkevents.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 27c7501bd3..aec67fcec6 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -1013,6 +1013,13 @@ gdk_event_set_coords (GdkEvent *event,
       event->touchpad_pinch.x = x;
       event->touchpad_pinch.y = y;
       break;
+    case GDK_DRAG_ENTER:
+    case GDK_DRAG_LEAVE:
+    case GDK_DRAG_MOTION:
+    case GDK_DROP_START:
+      event->dnd.x = x;
+      event->dnd.y = y;
+      break;
     default:
       break;
     }


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