aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input-events.c1
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);