gdk: Make gdk_event_set_coords support dnd events

GTK event propagation code relies on this working.
This commit is contained in:
Matthias Clasen 2020-01-05 21:07:40 -05:00
parent 532fdde720
commit 3080592234

View File

@ -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;
}