[Qemu-devel] [PULL 2/7] input: virtio: don't send mouse wheel event twice

2018-01-29 Thread Gerd Hoffmann
From: Miika S On Linux, a mouse event is generated for both down and up when mouse wheel is used. This caused virtio_input_send() to be called twice each time the wheel was used. This commit adds a check for the button down state and only calls virtio_input_send() when it is true. Signed-off-by

[Qemu-devel] [PULL 2/7] input: virtio: don't send mouse wheel event twice

2018-01-26 Thread Gerd Hoffmann
From: Miika S On Linux, a mouse event is generated for both down and up when mouse wheel is used. This caused virtio_input_send() to be called twice each time the wheel was used. This commit adds a check for the button down state and only calls virtio_input_send() when it is true. Signed-off-by