summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gestures.c2
1 files changed, 2 insertions, 0 deletions
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)
125 xcut = DELTA_CUT(xmax); 125 xcut = DELTA_CUT(xmax);
126 ycut = DELTA_CUT(ymax); 126 ycut = DELTA_CUT(ymax);
127 for (i = 0; i < mt->state.nfinger; i++) { 127 for (i = 0; i < mt->state.nfinger; i++) {
128 if (!GETBIT(mt->mem.pointing, i))
129 continue;
128 if (abs(mt->mem.dx[i]) > xcut || 130 if (abs(mt->mem.dx[i]) > xcut ||
129 abs(mt->mem.dy[i]) > ycut) { 131 abs(mt->mem.dy[i]) > ycut) {
130 SETBIT(mt->mem.moving, i); 132 SETBIT(mt->mem.moving, i);