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

This commit is contained in:
Tomas Carnecky 2006-12-01 00:27:31 +00:00 committed by Alexandre Julliard
parent dc0afe4242
commit 9d1686c8c5

View File

@ -101,18 +101,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
*
@ -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;