ia64/xen-unstable

changeset 13870:b83a81b99f20

Dom0 VNC server should not drop any of teh 8 supported mouse button
event types.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
author kfraser@localhost.localdomain
date Wed Feb 07 16:20:28 2007 +0000 (2007-02-07)
parents cb50bcfcf9fa
children ed9dba8e2c67
files tools/xenfb/vncfb.c
line diff
     1.1 --- a/tools/xenfb/vncfb.c	Wed Feb 07 16:12:40 2007 +0000
     1.2 +++ b/tools/xenfb/vncfb.c	Wed Feb 07 16:20:28 2007 +0000
     1.3 @@ -57,7 +57,8 @@ unsigned char keycode_table[512];
     1.4  static void *kbd_layout;
     1.5  
     1.6  static int btnmap[] = {
     1.7 -	BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, BTN_FORWARD, BTN_BACK
     1.8 +	BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, BTN_SIDE,
     1.9 +	BTN_EXTRA, BTN_FORWARD, BTN_BACK, BTN_TASK
    1.10  };
    1.11  
    1.12  static void on_kbd_event(rfbBool down, rfbKeySym keycode, rfbClientPtr cl)
    1.13 @@ -73,11 +74,12 @@ static void on_kbd_event(rfbBool down, r
    1.14  	 */
    1.15  	rfbScreenInfoPtr server = cl->screen;
    1.16  	struct xenfb *xenfb = server->screenData;
    1.17 +	int scancode;
    1.18  
    1.19 -	if( keycode >= 'A' && keycode <= 'Z' )
    1.20 +	if (keycode >= 'A' && keycode <= 'Z')
    1.21  		keycode += 'a' - 'A';
    1.22  
    1.23 -	int scancode = keycode_table[keysym2scancode(kbd_layout, keycode)];
    1.24 +	scancode = keycode_table[keysym2scancode(kbd_layout, keycode)];
    1.25  	if (scancode == 0)
    1.26  		return;
    1.27  	if (xenfb_send_key(xenfb, down, scancode) < 0)