| Submitter | Gerd Hoffmann |
|---|---|
| Date | Feb. 23, 2012, 2:26 p.m. |
| Message ID | <1330007196-14253-1-git-send-email-kraxel@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/142638/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/usb-hid.c b/hw/usb-hid.c index 53353d3..36730ce 100644 --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -466,6 +466,9 @@ static int usb_hid_handle_data(USBDevice *dev, USBPacket *p) case USB_TOKEN_IN: if (p->ep->nr == 1) { int64_t curtime = qemu_get_clock_ns(vm_clock); + if (hs->kind == HID_MOUSE || hs->kind == HID_TABLET) { + hid_pointer_activate(hs); + } if (!hid_has_events(hs) && (!hs->idle || hs->next_idle_clock - curtime > 0)) { return USB_RET_NAK;
Activate usb hid pointer devices (mouse+tablet) unconditionally on polls, even if we NAK the poll due to lack of new events. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- hw/usb-hid.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)