[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] usb-hid: fix tablet activation
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH] usb-hid: fix tablet activation |
Date: |
Thu, 23 Feb 2012 15:26:36 +0100 |
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 <address@hidden>
---
hw/usb-hid.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
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;
--
1.7.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] usb-hid: fix tablet activation,
Gerd Hoffmann <=
- Prev by Date:
Re: [Qemu-devel] [PATCH v4] qemu-ga: Add guest-network-info command
- Next by Date:
[Qemu-devel] [PULL 0/5]: QMP queue
- Previous by thread:
[Qemu-devel] Sveltess, Veet Epilation, Zazie Coiffure, Esquisse Paris, Roc, Le Petit Marseillais , Ambi Pur, Air Wick, Febreze, Oust, Brise, S oftsheen Carson, Laboratoire 3 Chenes, Nivea, Déo Chez Bien-etre-prive.com
- Next by thread:
[Qemu-devel] [PULL 0/5]: QMP queue
- Index(es):