https://bugs.winehq.org/show_bug.cgi?id=57585
Bug ID: 57585 Summary: Make UseTakeFocus default to N on Linux, so games can accept input when refocused Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: joeytwiddle@gmail.com Distribution: ---
To reproduce the problem:
1. On Linux (e.g. KDE5 with X11), start a game or fullscreen app (e.g. Among Us or Bad North Jotunn Edition, but you can find many games with the same problem)
2. Once the game has opened and is fullscreen, use Alt-Tab to switch to another app
3. Now switch back to the game.
4. The game now ignores mouse and keyboard input!
To fix it, kill the game, then run:
wine reg add 'HKEY_CURRENT_USER\Software\Wine\X11 Driver' /t REG_SZ /v UseTakeFocus /d N /f
Now try the above steps again. It has likely fixed the problem!
Because the problem is so common, please consider making the above fix the default setting on Linux. Hopefully it will benefit more users than it inconveniences.
---
The problem and solution have been mentioned here: - https://askubuntu.com/questions/299286/how-to-recover-focus-after-losing-it-... - https://bugs.winehq.org/show_bug.cgi?id=47929 - https://bugs.winehq.org/show_bug.cgi?id=48121 - https://bugs.winehq.org/show_bug.cgi?id=37393 - https://bugs.winehq.org/show_bug.cgi?id=56073