winex11.drv: GetAsyncKeyState must check mouse buttons, too.

This commit is contained in:
Dan Kegel 2007-04-12 10:20:43 -07:00 committed by Alexandre Julliard
parent 3f0575943e
commit c2ae970e60

View File

@ -1827,7 +1827,8 @@ SHORT X11DRV_GetAsyncKeyState(INT key)
{
SHORT retval;
X11DRV_MsgWaitForMultipleObjectsEx( 0, NULL, 0, QS_KEY, 0 );
/* Photoshop livelocks unless mouse events are included here */
X11DRV_MsgWaitForMultipleObjectsEx( 0, NULL, 0, QS_KEY | QS_MOUSE, 0 );
retval = ((key_state_table[key] & 0x40) ? 0x0001 : 0) |
((key_state_table[key] & 0x80) ? 0x8000 : 0);