Dan Kegel : winex11.drv: GetAsyncKeyState must check mouse buttons,
too.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Apr 13 06:49:38 CDT 2007
Module: wine
Branch: master
Commit: c2ae970e6055f6d18a9166c4cd2d760edfabf20d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2ae970e6055f6d18a9166c4cd2d760edfabf20d
Author: Dan Kegel <dank at kegel.com>
Date: Thu Apr 12 10:20:43 2007 -0700
winex11.drv: GetAsyncKeyState must check mouse buttons, too.
---
dlls/winex11.drv/keyboard.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 96a0dc1..8738425 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -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);
More information about the wine-cvs
mailing list