diff options
author | Ulf Brosziewski <bru@cvs.openbsd.org> | 2017-03-07 19:07:57 +0000 |
---|---|---|
committer | Ulf Brosziewski <bru@cvs.openbsd.org> | 2017-03-07 19:07:57 +0000 |
commit | b72aa1c7f6e3128de290e61f34f246e18abf7bc2 (patch) | |
tree | 345ed4978543ab67bafb2aa50f2fe8ed33f7ed39 /driver/xf86-input-synaptics | |
parent | cd15b80a4a26692be8e11059c9eb1e982c98e5a8 (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.c | 3 |
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); |