aboutsummaryrefslogtreecommitdiffstats
path: root/src/gestures.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gestures.c')
-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)
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);