Allow key up events to propagate on start. (#230)

master
Raheman Vaiya 4 years ago
parent 4eaeaba411
commit 0f07854cc4
  1. 4
      src/device.c

@ -264,6 +264,10 @@ int device_grab(struct device *dev)
break;
}
//Allow the key up events to propagate before
//grabbing the device.
usleep(100);
if (ioctl(dev->fd, EVIOCGRAB, (void *) 1) < 0) {
perror("EVIOCGRAB");
return -1;

Loading…
Cancel
Save