aboutsummaryrefslogtreecommitdiffstats
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
parentc2f2cebb45ddb17c1186f3ad3f31851fe61fd317 (diff)
downloadxorg-input-kobomultitouch-923754e3b864c33e23725435ae5049354a8ac5aa.tar.gz
xorg-input-kobomultitouch-923754e3b864c33e23725435ae5049354a8ac5aa.tar.bz2
xorg-input-kobomultitouch-923754e3b864c33e23725435ae5049354a8ac5aa.zip
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>
-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);