From 923754e3b864c33e23725435ae5049354a8ac5aa Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 18 Apr 2010 09:54:06 +0200 Subject: Make all movement computations work on pointing subset In the current implementation this patch has no effect, but with any change to the logic, it will. Add the lines missing in order to loop over pointing fingers. Signed-off-by: Henrik Rydberg --- src/gestures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gestures.c b/src/gestures.c index 28d0417..36d49f4 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -125,6 +125,8 @@ static void extract_movement(struct Gestures *gs, struct MTouch* mt) xcut = DELTA_CUT(xmax); ycut = DELTA_CUT(ymax); for (i = 0; i < mt->state.nfinger; i++) { + if (!GETBIT(mt->mem.pointing, i)) + continue; if (abs(mt->mem.dx[i]) > xcut || abs(mt->mem.dy[i]) > ycut) { SETBIT(mt->mem.moving, i); -- cgit v1.2.3