summaryrefslogtreecommitdiff
path: root/gtk/gtkeventcontroller.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-15 20:47:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-21 00:50:59 -0500
commite3158a1bfb4580b9a9d6901453a4bde02394e6ec (patch)
treeffa43c3a033640b0ca75e86d02529e95a1aea5fd /gtk/gtkeventcontroller.c
parent23c67f8c672ee3c0a3e22afd71ac86f96592dca5 (diff)
downloadgtk+-e3158a1bfb4580b9a9d6901453a4bde02394e6ec.tar.gz
Make crossing events handled the same way
Diffstat (limited to 'gtk/gtkeventcontroller.c')
-rw-r--r--gtk/gtkeventcontroller.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkeventcontroller.c b/gtk/gtkeventcontroller.c
index 9c77d49444..609c0bc774 100644
--- a/gtk/gtkeventcontroller.c
+++ b/gtk/gtkeventcontroller.c
@@ -105,6 +105,7 @@ gtk_event_controller_filter_event_default (GtkEventController *self,
}
target = GTK_WIDGET (gdk_event_get_related_target (event));
+
if (target)
{
native2 = GTK_WIDGET (gtk_widget_get_native (target));
@@ -320,8 +321,8 @@ gtk_event_controller_handle_event (GtkEventController *controller,
* gtk_event_controller_handle_crossing:
* @controller: a #GtkEventController
* @crossing: a #GtkCrossingData
- * @x: event position in widget coordinates
- * @y: event position in widget coordinates
+ * @x: translated event coordinates
+ * @y: translated event coordinates
*
* Feeds a crossing event into @controller, so it can be interpreted
* and the controller actions triggered.