Alexandre Julliard : server: Fix checking of X button flags when updating the input key state.
Alexandre Julliard
julliard at winehq.org
Tue Mar 8 11:03:50 CST 2011
Module: wine
Branch: master
Commit: 0b8571e3dc348d3ca0bbd43dd9d4e0895c59e0f0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0b8571e3dc348d3ca0bbd43dd9d4e0895c59e0f0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Mar 7 23:48:03 2011 +0100
server: Fix checking of X button flags when updating the input key state.
---
server/queue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/queue.c b/server/queue.c
index 97e0c4d..7d25afa 100644
--- a/server/queue.c
+++ b/server/queue.c
@@ -1147,8 +1147,8 @@ static void update_input_key_state( struct desktop *desktop, unsigned char *keys
down = (keystate == desktop->keystate) ? 0xc0 : 0x80;
/* fall through */
case WM_XBUTTONUP:
- if (msg->wparam == XBUTTON1) set_input_key_state( keystate, VK_XBUTTON1, down );
- else if (msg->wparam == XBUTTON2) set_input_key_state( keystate, VK_XBUTTON2, down );
+ if (msg->wparam >> 16 == XBUTTON1) set_input_key_state( keystate, VK_XBUTTON1, down );
+ else if (msg->wparam >> 16 == XBUTTON2) set_input_key_state( keystate, VK_XBUTTON2, down );
break;
case WM_KEYDOWN:
case WM_SYSKEYDOWN:
More information about the wine-cvs
mailing list