diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-18 01:51:34 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-10-12 15:39:16 +0200 |
commit | d62cfe70ee85872c36aaa182d110793ce8f14d57 (patch) | |
tree | 5dd995cb4e4d62de4b48f3e0de96db770ccffe38 | |
parent | acea9df3381825a634c000a574f58b4ca5293ee8 (diff) | |
download | xorg-input-kobomultitouch-d62cfe70ee85872c36aaa182d110793ce8f14d57.tar.gz xorg-input-kobomultitouch-d62cfe70ee85872c36aaa182d110793ce8f14d57.tar.bz2 xorg-input-kobomultitouch-d62cfe70ee85872c36aaa182d110793ce8f14d57.zip |
Only check delayed gestures when queue is empty
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r-- | src/mtouch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mtouch.c b/src/mtouch.c index e2d9572..8a83d64 100644 --- a/src/mtouch.c +++ b/src/mtouch.c @@ -75,5 +75,7 @@ int read_packet(struct MTouch *mt, int fd) int has_delayed_gestures(struct MTouch *mt, int fd) { - return mt->mem.wait && mtdev_idle(&mt->dev, fd, mt->mem.wait); + return mt->mem.wait && + mtdev_empty(&mt->dev) && + mtdev_idle(&mt->dev, fd, mt->mem.wait); } |