[gtk/dnd-gestures-2: 81/175] gdk: Make gdk_event_set_coords support dnd events



commit 5512bd94b61bcc7388e109dc20cfd3dbb3d7b504
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]