http://bugs.winehq.org/show_bug.cgi?id=34919
Bug #: 34919 Summary: Quake Live standalone can't grab input correctly Product: Wine Version: 1.7.6 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: winehq@lam.pl Classification: Unclassified
Quake Live is moving out of the browser and becoming a standalone Windows executable, dropping support for Linux and Mac OS X.
When testing the product preview in Wine, I have big issues related to the Alt key.
1. After pressing "Join Game", the game grabs input like I want it.
Both Google and #winehq@freenode immediately suggest that window manager can grab alt-mouse click, hence I feel it's necessary to confirm:
I can press Alt and click mouse and all works as intended (aka I can shoot and turn around while shooting, even with the Alt key pressed). There is no problem with mouse grab or window manager at this point.
2. After pressing a combination of Alt+Space, a Wine window menu appears, even though Wine is WM-managed and even though the same combo has no "system" effect on Windows (the key combo can be bound by game on Windows).
The game is completely stopped until I click mouse. Pressing Alt or Esc to close the menu doesn't "unpause" game process.
3. After pressing Alt+any letter, mouse buttons (including mouse wheel scrolling) stop working.
Keyboard works and moving mouse around still works, but mouse buttons are dead. To get back from this state, I need to open and close menu (Esc-Esc) or console (tilde-tilde).
If I'm in window mode, there's a very short time window (like 50 ms?) when the mouse is un-grabbed and clicking the mouse in combination with alt+letter actually is captured by the WM (to start moving window). But that's only a side-effect of mouse un-grabbing. Again: to break mouse input, all I need is to press alt+any letter, which for sure isn't captured by anything else but Wine itself.
4. When I've tried Wine with non-WM-managed windows, there were more negative effects, including complete game hang on pressing Alt alone (and resuming with another Alt hit). So I went back to managed window.
5. I have thought about working around this by doing xmodmap -e "keycode 64 = something else" but this has other unintended consequences and is system-wide.
I have tested it in Wine 1.6, 1.7.5 and 1.7.6 (I've built it with Fedora's spec, including PulseAudio patch which works nicely and surely isn't related to this problem).
TL;DR: Alt+any letter forcibly breaks game's input grab which can only be regained by making the game release and re-grab input.
As an interim solution, is there a way to make Wine completely deaf to Alt combos?