http://bugs.winehq.org/show_bug.cgi?id=33427
Bug #: 33427 Summary: Tomb Raider (2013): Desktop does not get mouse focus after closing game Product: Wine Version: 1.5.28 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: felixhaedicke@web.de Classification: Unclassified
After closing Tomb Raider (2013), the game window disappears and the TombRaider.exe process is not running any more, but the desktop and running applications do not react to mouse move / click. But the mouse cursor is visible and the keyboard seems to work. After pressing a key to switch to another application (for example the super key to open the Unity starter), or executing "wineserver -k", everything is fine again.
The game is bound to Steam, so the steam process is still running after closing Tomb Raider.
The bug seems to be independent of the desktop environment, it happens at least with Unity and KDE on Ubuntu 12.10.
This does not happen if the game is run in windowed mode. In fullscreen mode, it is always reproducible.
As this did not happen with Wine 1.5.13 (but with 1.5.14), I ran a regression test and identified the following commit as the guilty one:
commit 73d68c5a31b972a24dab39b036a5d3197edb3565 Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Sep 28 01:06:53 2012 +0200
winex11: Handle a NULL cursor clipping rect the same as a fullscreen rect.
We want to avoid ungrabbing the clipping window if "fullscreen clipping" is enabled.
Reverting this commit fixes the problem in current wine git master version.