[gtk/readonly-events-1: 48/74] x11: Remove an unnecessary check



commit 6c3f0d099b16b678949d6fff8d6fca7806361c38
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 15 10:45:28 2020 -0500

    x11: Remove an unnecessary check
    
    We are not creating GDK_NOTHING events anymore. Yay

 gdk/x11/gdkeventsource.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c
index 2ca0f2c4a6..9c172b51f4 100644
--- a/gdk/x11/gdkeventsource.c
+++ b/gdk/x11/gdkeventsource.c
@@ -292,12 +292,6 @@ gdk_event_source_translate_event (GdkX11Display  *x11_display,
         }
     }
 
-  if (event &&
-      event->any.type == GDK_NOTHING)
-    {
-      g_clear_object (&event);
-    }
-
   if (event &&
       (event->any.type == GDK_ENTER_NOTIFY ||
        event->any.type == GDK_LEAVE_NOTIFY) &&


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