[gtk] Quietly ignore GDK_NOTHING events



commit b6893b6d9f9f32223b1f8edc7e943395728012a4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 23 17:06:28 2019 -0500

    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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]