[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix Mouse hang with VNC



# HG changeset patch
# User adsharma@xxxxxxxxxxxxxxxxxxxx
# Node ID e5ea9df58340e4ff0351683270bfa4da25191d31
# Parent  c463720c5439c7ebda2ff61ca0dd5bacdc49d74a
Fix Mouse hang with VNC

I've made some progress on this problem.  Turns out, the VNC emulator is
a little over aggressive in dealing with reset commands for the mouse.
Since there are commands that enable and disable the mouse the VNC
emulator provides this control.  Unfortunately, VNC also interprets
either a `reset' or `set to default' command to also disable the mouse.
This is wrong, neither of these commands are supposed to affect the
enabled status of the mouse so that, when X sends a `reset', no futher
mouse data is sent, making it look like X is hung.

Signed-off-by: Don Dugger <donald.d.dugger@xxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>

diff -r c463720c5439 -r e5ea9df58340 tools/ioemu/hw/pckbd.c
--- a/tools/ioemu/hw/pckbd.c    Tue Aug  9 19:06:44 2005
+++ b/tools/ioemu/hw/pckbd.c    Tue Aug  9 19:06:44 2005
@@ -704,14 +704,14 @@
         case AUX_SET_DEFAULT:
             s->mouse_sample_rate = 100;
             s->mouse_resolution = 2;
-            s->mouse_status = 0;
+            s->mouse_status &= MOUSE_STATUS_ENABLED;
                    s->touchpad.absolute = 0;
             kbd_queue(s, AUX_ACK, 1);
             break;
         case AUX_RESET:
             s->mouse_sample_rate = 100;
             s->mouse_resolution = 2;
-            s->mouse_status = 0;
+            s->mouse_status &= MOUSE_STATUS_ENABLED;
            s->touchpad.absolute = 0;
             kbd_queue(s, AUX_ACK, 1);
             kbd_queue(s, 0xaa, 1);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.