aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-04-15 19:33:39 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-04-15 21:41:15 +0200
commit93d4a10726df4ae85931db80bc3a22e1929c3ef4 (patch)
treea2430362a549085a6909f8368637421fca5218ee /src
parentc9648012e8d6533c8f0b8b937f562f57721f7574 (diff)
downloadxorg-input-kobomultitouch-93d4a10726df4ae85931db80bc3a22e1929c3ef4.tar.gz
xorg-input-kobomultitouch-93d4a10726df4ae85931db80bc3a22e1929c3ef4.tar.bz2
xorg-input-kobomultitouch-93d4a10726df4ae85931db80bc3a22e1929c3ef4.zip
Reset accumulated movement at finger configuration change
This bug crept in during the transition of the movement code from position differencing to delta accumulation. If briefly touching the trackpad in motion, then placing the finger calmly at another point, a jittery motion would occur. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src')
-rw-r--r--src/gestures.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gestures.c b/src/gestures.c
index 277e864..432f3af 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -106,6 +106,8 @@ static void extract_movement(struct Gestures *gs, struct MTouch* mt)
mt->mem.move_time += FINGER_ATTACK_MS;
else
mt->mem.move_time += FINGER_DECAY_MS;
+ memset(mt->mem.dx, 0, sizeof(mt->mem.dx));
+ memset(mt->mem.dy, 0, sizeof(mt->mem.dy));
} else {
for (i = 0; i < mt->state.nfinger; i++) {
if (!GETBIT(mt->mem.pointing, i))