From: Carlos Garnacho Date: Wed, 26 Jan 2022 15:02:00 +0000 (+0100) Subject: gtk/gesture: Fix point info lookup on touchpad events X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~4^2~54^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6fd36457130b89d030f684785987c6e5e0531a33;p=gtk4.git 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. --- 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;