summaryrefslogtreecommitdiff
path: root/driver/xf86-input-synaptics
diff options
context:
space:
mode:
authorUlf Brosziewski <bru@cvs.openbsd.org>2017-03-07 19:07:57 +0000
committerUlf Brosziewski <bru@cvs.openbsd.org>2017-03-07 19:07:57 +0000
commitb72aa1c7f6e3128de290e61f34f246e18abf7bc2 (patch)
tree345ed4978543ab67bafb2aa50f2fe8ed33f7ed39 /driver/xf86-input-synaptics
parentcd15b80a4a26692be8e11059c9eb1e982c98e5a8 (diff)
Don't use stale coordinates in the hysteresis filter.
OK mpi@
Diffstat (limited to 'driver/xf86-input-synaptics')
-rw-r--r--driver/xf86-input-synaptics/src/wsconscomm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/xf86-input-synaptics/src/wsconscomm.c b/driver/xf86-input-synaptics/src/wsconscomm.c
index 00ba7fec9..cc60bb0a3 100644
--- a/driver/xf86-input-synaptics/src/wsconscomm.c
+++ b/driver/xf86-input-synaptics/src/wsconscomm.c
@@ -252,6 +252,9 @@ WSConsReadHwState(InputInfoPtr pInfo,
if (reset) {
/* Ensure that pointer motion stops. */
priv->count_packet_finger = 0;
+ /* Don't use stale coordinates for filtering. */
+ priv->hyst_center_x = hw->x;
+ priv->hyst_center_y = hw->y;
if (priv->vert_scroll_twofinger_on
|| priv->horiz_scroll_twofinger_on) {
WSConsAdjustScrollCoords(priv, hw);