summaryrefslogtreecommitdiffstats
path: root/sys/dev/adb/adb_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/adb/adb_mouse.c')
-rw-r--r--sys/dev/adb/adb_mouse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/adb/adb_mouse.c b/sys/dev/adb/adb_mouse.c
index 70ad5c3..b80a31b 100644
--- a/sys/dev/adb/adb_mouse.c
+++ b/sys/dev/adb/adb_mouse.c
@@ -471,7 +471,8 @@ ams_poll(struct cdev *dev, int events, struct thread *p)
mtx_lock(&sc->sc_mtx);
if (sc->xdelta == 0 && sc->ydelta == 0 &&
- sc->buttons == sc->last_buttons) {
+ sc->buttons == sc->last_buttons &&
+ sc->packet_read_len == 0) {
selrecord(p, &sc->rsel);
events = 0;
} else {
OpenPOWER on IntegriCloud