[gtk/readonly-events-1: 16/35] Stop looking at the related target for filtering
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/readonly-events-1: 16/35] Stop looking at the related target for filtering
- Date: Tue, 18 Feb 2020 05:23:54 +0000 (UTC)
commit ccaebe2a5639971e2d28ae0de871baf51a54481f
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]