[gtk/dnd-gestures-2: 76/150] gdk: Make gdk_event_set_coords support dnd events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 76/150] gdk: Make gdk_event_set_coords support dnd events
- Date: Tue, 7 Jan 2020 06:58:18 +0000 (UTC)
commit 63a530437373a4ed1cdb8d53f8bcbd4fe5b90d86
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]