[gtk/wip/carlosg/touchpad-gesture-fixes: 3/3] gtk/gesture: Fix point info lookup on touchpad events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/touchpad-gesture-fixes: 3/3] gtk/gesture: Fix point info lookup on touchpad events
- Date: Wed, 26 Jan 2022 15:16:24 +0000 (UTC)
commit 6fd36457130b89d030f684785987c6e5e0531a33
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jan 26 16:02:00 2022 +0100
gtk/gesture: Fix point info lookup on touchpad events
Since the addition of GdkEventSequence in touchpad events, these
are now stored in the gesture using that sequence. This bit of touchpad
gesture handling was however missing to be updated, still looking up
the special NULL sequence.
Use the last sequence here, which will be the one coming from touchpad
gesture events.
gtk/gtkgesture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 3897ba0549..33b2fb9326 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -242,7 +242,7 @@ _gtk_gesture_get_n_touchpad_points (GtkGesture *gesture,
if (!priv->touchpad)
return 0;
- data = g_hash_table_lookup (priv->points, NULL);
+ data = g_hash_table_lookup (priv->points, priv->last_sequence);
if (!data)
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]