server: Fix checking of X button flags when updating the input key state.

This commit is contained in:
Alexandre Julliard 2011-03-07 23:48:03 +01:00
parent 99af2f56ba
commit 0b8571e3dc
1 changed files with 2 additions and 2 deletions

View File

@ -1147,8 +1147,8 @@ static void update_input_key_state( struct desktop *desktop, unsigned char *keys
down = (keystate == desktop->keystate) ? 0xc0 : 0x80; down = (keystate == desktop->keystate) ? 0xc0 : 0x80;
/* fall through */ /* fall through */
case WM_XBUTTONUP: case WM_XBUTTONUP:
if (msg->wparam == XBUTTON1) set_input_key_state( keystate, VK_XBUTTON1, down ); if (msg->wparam >> 16 == XBUTTON1) set_input_key_state( keystate, VK_XBUTTON1, down );
else if (msg->wparam == XBUTTON2) set_input_key_state( keystate, VK_XBUTTON2, down ); else if (msg->wparam >> 16 == XBUTTON2) set_input_key_state( keystate, VK_XBUTTON2, down );
break; break;
case WM_KEYDOWN: case WM_KEYDOWN:
case WM_SYSKEYDOWN: case WM_SYSKEYDOWN: