diff options
author | Peter Osterlund <petero2@telia.com> | 2003-12-16 00:07:48 +0100 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:32 +0200 |
commit | f928c154f544f22d3a51cd4972a1e1e36c973781 (patch) | |
tree | a932e73cba9320346be689175520e397879e87ab | |
parent | 79d70cd3491ebed6ac02d3d4646874cc34611bfc (diff) |
When calling HandleState() from timerFunc() make sure
guest_dx and guest_dy are zero, so that we don't account for the same
delta values more than once.
-rw-r--r-- | synaptics.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synaptics.c b/synaptics.c index da4f05b..15befb6 100644 --- a/synaptics.c +++ b/synaptics.c @@ -593,6 +593,7 @@ timerFunc(OsTimerPtr timer, CARD32 now, pointer arg) sigstate = xf86BlockSIGIO(); hw = priv->hwState; + hw.guest_dx = hw.guest_dy = 0; hw.millis = now; delay = HandleState(local, &hw); |