mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 11:40:15 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
When the compositor is in a repaint cycle, input is processed only once per frame. However, a call to evdev_input_device_data() would handle at most 8 events at time. When there was more than 8 events pending for a given frame, input lag would occur. This was most visible with multi touch input. This patch changes the evdev_input_device_data() so that it will handle all the events available in the fd. In order to do that, the fd is put in non-blocking mode, so that it is possible to loop on read and stop on EAGAIN instead of blocking. |
||
|---|---|---|
| src | ||