Commit 9d1686c8 authored by Tomas Carnecky's avatar Tomas Carnecky Committed by Alexandre Julliard

winex11.drv: Don't update the key state table in mouse related functions.

parent dc0afe42
......@@ -102,18 +102,6 @@ static inline void update_button_state( unsigned int 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 hwnd, Window window, int x, int y, unsigned
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment