Tomas Carnecky : winex11.drv: Don'
t update the key state table in mouse related functions.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Dec 1 06:30:02 CST 2006
Module: wine
Branch: master
Commit: 9d1686c8c5a6a5f16000e70c78048ef0da8e9edc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d1686c8c5a6a5f16000e70c78048ef0da8e9edc
Author: Tomas Carnecky <tom at dbservice.com>
Date: Fri Dec 1 00:27:31 2006 +0000
winex11.drv: Don't update the key state table in mouse related functions.
---
dlls/winex11.drv/mouse.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index abb8306..5067acd 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -102,18 +102,6 @@ static inline void update_button_state(
/***********************************************************************
- * update_key_state
- *
- * Update the key state with what X provides us
- */
-static inline void update_key_state( unsigned int state )
-{
- key_state_table[VK_SHIFT] = (state & ShiftMask ? 0x80 : 0);
- key_state_table[VK_CONTROL] = (state & ControlMask ? 0x80 : 0);
-}
-
-
-/***********************************************************************
* update_mouse_state
*
* Update the various window states on a mouse event.
@@ -128,7 +116,6 @@ static void update_mouse_state( HWND hwn
y += virtual_screen_rect.top;
}
get_coords( hwnd, x, y, pt );
- update_key_state( state );
/* update the cursor */
@@ -718,7 +705,6 @@ BOOL X11DRV_GetCursorPos(LPPOINT pos)
if (XQueryPointer( display, root_window, &root, &child,
&rootX, &rootY, &winX, &winY, &xstate ))
{
- update_key_state( xstate );
update_button_state( xstate );
winX += virtual_screen_rect.left;
winY += virtual_screen_rect.top;
More information about the wine-cvs
mailing list