From b6893b6d9f9f32223b1f8edc7e943395728012a4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 23 Feb 2019 17:06:28 -0500 Subject: [PATCH] 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. --- gdk/gdkevents.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 352ec44919..a076da7b7b 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -149,6 +149,9 @@ gdk_event_class_init (GdkEventClass *klass) void _gdk_event_emit (GdkEvent *event) { + if (gdk_event_get_event_type (event) == GDK_NOTHING) + return; + if (gdk_drag_handle_source_event (event)) return;