From 0b4c998f1b8917f6aabaf5a936fde97f0427b956 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 22 May 2015 13:28:40 +0200 Subject: fix return autorepeat --- input-events.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit