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

[Xen-changelog] [xen-unstable] Dom0 VNC server should not drop any of teh 8 supported mouse button



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1170865228 0
# Node ID b83a81b99f20a34bad73b3114391b832fa41edf3
# Parent  cb50bcfcf9fafc98eb3a0c7e516f86446b463a65
Dom0 VNC server should not drop any of teh 8 supported mouse button
event types.
Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 tools/xenfb/vncfb.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff -r cb50bcfcf9fa -r b83a81b99f20 tools/xenfb/vncfb.c
--- a/tools/xenfb/vncfb.c       Wed Feb 07 16:12:40 2007 +0000
+++ b/tools/xenfb/vncfb.c       Wed Feb 07 16:20:28 2007 +0000
@@ -57,7 +57,8 @@ static void *kbd_layout;
 static void *kbd_layout;
 
 static int btnmap[] = {
-       BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, BTN_FORWARD, BTN_BACK
+       BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, BTN_SIDE,
+       BTN_EXTRA, BTN_FORWARD, BTN_BACK, BTN_TASK
 };
 
 static void on_kbd_event(rfbBool down, rfbKeySym keycode, rfbClientPtr cl)
@@ -73,11 +74,12 @@ static void on_kbd_event(rfbBool down, r
         */
        rfbScreenInfoPtr server = cl->screen;
        struct xenfb *xenfb = server->screenData;
-
-       if( keycode >= 'A' && keycode <= 'Z' )
+       int scancode;
+
+       if (keycode >= 'A' && keycode <= 'Z')
                keycode += 'a' - 'A';
 
-       int scancode = keycode_table[keysym2scancode(kbd_layout, keycode)];
+       scancode = keycode_table[keysym2scancode(kbd_layout, keycode)];
        if (scancode == 0)
                return;
        if (xenfb_send_key(xenfb, down, scancode) < 0)

_______________________________________________
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®.