From b38869b3aa062ebe56bd23b4824da720fac56ee9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 16 Feb 2020 01:50:39 -0500 Subject: [PATCH] Stop looking at the related target for filtering We are now sending crossing events (which are the only ones where a related target makes sense) via handle_crossing. --- gtk/gtkeventcontroller.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkeventcontroller.c b/gtk/gtkeventcontroller.c index 16c5e0fc6c..8d1fa5d709 100644 --- a/gtk/gtkeventcontroller.c +++ b/gtk/gtkeventcontroller.c @@ -106,8 +106,7 @@ gtk_event_controller_filter_event_default (GtkEventController *self, if (priv->limit == GTK_LIMIT_SAME_NATIVE) { - if (same_native (priv->widget, GTK_WIDGET (gdk_event_get_target (event))) && - same_native (priv->widget, GTK_WIDGET (gdk_event_get_related_target (event)))) + if (same_native (priv->widget, GTK_WIDGET (gdk_event_get_target (event)))) return FALSE; return TRUE;