gtk/gesture: Fix point info lookup on touchpad events
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 26 Jan 2022 15:02:00 +0000 (16:02 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 26 Jan 2022 15:02:00 +0000 (16:02 +0100)
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

index 3897ba05495c964fcee4268e4b06c48175feeb24..33b2fb93262e2a0f7f32e4b3da8da7636fa0f906 100644 (file)
@@ -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;