[gtk/readonly-events-1: 42/49] Stop looking at the related target for filtering



commit 6ea494112bba9a8e006768d4248e277b209c7e41
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 16 01:50:39 2020 -0500

    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;


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