mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-22 10:10:05 +01:00
Add a FIXME for lack of O_NONBLOCK
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
897dfba2ef
commit
0797c0035b
1 changed files with 4 additions and 0 deletions
|
|
@ -548,6 +548,10 @@ int libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_e
|
|||
queue_shift_multiple(dev, dev->queue_nsync, NULL);
|
||||
}
|
||||
|
||||
/* FIXME: check for O_NONBLOCK and if not set, skip if we have an
|
||||
* event in the queue from the previous read.
|
||||
*/
|
||||
|
||||
/* Always read in some more events. Best case this smoothes over a potential SYN_DROPPED,
|
||||
worst case we don't read fast enough and end up with SYN_DROPPED anyway */
|
||||
rc = read_more_events(dev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue