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.
This commit is contained in:
Matthias Clasen 2020-02-16 01:50:39 -05:00
parent d063b6b6cc
commit b38869b3aa

View File

@ -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;