diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-22 13:28:40 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-22 13:28:40 +0200 |
commit | 0b4c998f1b8917f6aabaf5a936fde97f0427b956 (patch) | |
tree | 4e3f3c1d85ceb547e1ee3d566a3a2a4e671e0010 | |
parent | f7ff2c2d97cc7fd046a55aa6c82ad0922e028dfd (diff) | |
download | input-0b4c998f1b8917f6aabaf5a936fde97f0427b956.tar.gz |
fix return autorepeat
-rw-r--r-- | input-events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input-events.c b/input-events.c index 38207c8..217c24d 100644 --- a/input-events.c +++ b/input-events.c @@ -25,6 +25,7 @@ static void show_events(int nr, int timeout, int grab) device_info(nr, fd, true); if (grab) { + usleep(100000); // let kernel process return key-up event if (-1 == ioctl(fd,EVIOCGRAB,1)) { perror("ioctl EVIOCGRAB(1)"); close(fd); |