diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-11-03 11:15:47 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-11-03 11:15:47 +1000 |
commit | 683c71e3a7d0a918df84b15b9f621f33121943db (patch) | |
tree | f565e792e8d26491999b8f6ca940d4fac41cc4ae | |
parent | 370064d77fe58084a427df4aca51c4caf483f4d5 (diff) |
squashme
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | multitouch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/multitouch.c b/multitouch.c index 3ba0b3c..d6b9bcf 100644 --- a/multitouch.c +++ b/multitouch.c @@ -226,7 +226,8 @@ static struct touchpoint* find_touch(struct multitouch *mt, uint32_t touchid) int i; for (i = 0; i < mt->ntouches; i++) - if (mt->touches[i].state != TSTATE_END) + if (mt->touches[i].state != TSTATE_END && + mt->touches[i].touchid == touchid) return &mt->touches[i]; return NULL; |