[Bug 34919] Quake Live standalone can't grab input correctly

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Nov 20 03:33:03 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=34919

--- Comment #1 from Lam <winehq at lam.pl> 2013-11-20 03:33:03 CST ---
Well, after grepping for ALT in source tree, I found a work-around that at
least removed the grab releasing problem.

In dlls/winex11.drv/window.c I've removed the lines:

     case SC_KEYMENU:
         /* prevent a simple ALT press+release from activating the system menu,
          * as that can get confusing on managed windows */
-        if ((WCHAR)lparam) goto failed;  /* got an explicit char */
-        if (GetMenu( hwnd )) goto failed;  /* window has a real menu */
-        if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_SYSMENU)) goto failed; 
/* no system menu */


I have absolutely no idea what I've done, but returning 0 instead of -1 to this
signal (or whatever this is called) stops Wine from reacting to Alt combos with
no apparent side effects (I mean, my Wine still can't play the game properly,
but other symptoms aren't worse after this).

I'd really appreciate someone smarter than me explaining where this is
initiated to stop raising this condition at all when the mouse is grabbed.
Right now I feel I've hacked the symptom out, but somewhere there's a cause.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list