WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Mouse stops responding when wheel is used in Windows VM

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Mouse stops responding when wheel is used in Windows VM
From: "James Song" <jsong@xxxxxxxxxx>
Date: Fri, 20 Mar 2009 00:59:07 -0600
Delivery-date: Thu, 19 Mar 2009 23:59:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I have found that when I attempt to use the wheel to scroll in a Windows VM,
the mouse becomes unresponsive for several moments.  It appears as though
during that time, the wheel scroll events are still being passed into the
guest.
 
 
patch to fix it:
 
diff -r 2d7858d7c9f4 tools/ioemu-remote/hw/usb-hid.c
--- a/tools/ioemu-remote/hw/usb-hid.c Wed Feb 04 14:58:01 2009 +0800
+++ b/tools/ioemu-remote/hw/usb-hid.c Fri Feb 20 11:13:38 2009 +0800
@@ -551,6 +551,8 @@
     e = &s->queue[s->head];
 
     dz = int_clamp(e->dz, -127, 127);
+    if(dz)
+        e->dz = 0;
 
     if (s->xyrel) {
         dx = int_clamp(e->xdx, -127, 127);
@@ -593,7 +595,6 @@
 
     case USB_TABLET:
  /* Appears we have to invert the wheel direction */
- dz = 0 - dz;
 
  buf[0] = b;
  buf[1] = dx & 0xff;
 
 
 
--James Song ( Song Wei )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>