Quietly ignore GDK_NOTHING events

These don't have a surface, so we can't deliver
them via the ::event signal. But then, they're
good for nothing anyway.
This commit is contained in:
Matthias Clasen 2019-02-23 17:06:28 -05:00
parent 4001e7645b
commit b6893b6d9f

View File

@ -149,6 +149,9 @@ gdk_event_class_init (GdkEventClass *klass)
void void
_gdk_event_emit (GdkEvent *event) _gdk_event_emit (GdkEvent *event)
{ {
if (gdk_event_get_event_type (event) == GDK_NOTHING)
return;
if (gdk_drag_handle_source_event (event)) if (gdk_drag_handle_source_event (event))
return; return;