diff options
-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); } |