diff options
author | Javier Celaya | 2017-03-27 20:26:24 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2017-04-03 11:44:58 +0200 |
commit | 1684907c924140be00950a8a17740377f477a6a6 (patch) | |
tree | 67986bb3c625c54b34b2755e80fa596711022f2d /ui/vnc.c | |
parent | xhci: flush dequeue pointer to endpoint context (diff) | |
download | qemu-1684907c924140be00950a8a17740377f477a6a6.tar.gz qemu-1684907c924140be00950a8a17740377f477a6a6.tar.xz qemu-1684907c924140be00950a8a17740377f477a6a6.zip |
Fix input-linux reading from device
The evdev devices in input-linux.c are read in blocks of one whole
event. If there are not enough bytes available, they are discarded,
instead of being kept for the next read operation. This results in
lost events, of even non-working devices.
This patch keeps track of the number of bytes to be read to fill up
a whole event, and then handle it.
Changes from v1 to v2:
- Fix: Calculate offset on each iteration
Changes from v2 to v3:
- Fix coding style
- Store offset instead of bytes to be read
Signed-off-by: Javier Celaya <jcelaya@gmail.com>
Message-id: 20170327182624.2914-1-jcelaya@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/vnc.c')
0 files changed, 0 insertions, 0 deletions