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.
This commit is contained in:
Carlos Garnacho 2022-01-26 16:02:00 +01:00
parent 8e86e6325b
commit 6fd3645713

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