diff options
-rw-r--r-- | gdk/x11/gdkeventsource.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c index 5f85a0b7b0..25c68c3a3e 100644 --- a/gdk/x11/gdkeventsource.c +++ b/gdk/x11/gdkeventsource.c @@ -306,6 +306,12 @@ 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) && event->any.surface != NULL) |