summaryrefslogtreecommitdiff
path: root/src/gestures.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-04-18 09:54:06 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-04-18 09:58:45 +0200
commit923754e3b864c33e23725435ae5049354a8ac5aa (patch)
tree262b7ce94749ad86da734daa1c2bde8aad9472c3 /src/gestures.c
parentc2f2cebb45ddb17c1186f3ad3f31851fe61fd317 (diff)
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 <rydberg@euromail.se>
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)
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);