https://bugs.winehq.org/show_bug.cgi?id=57569
Bug ID: 57569 Summary: BeamNG.drive minimizes its window during startup, with UseTakeFocus set to false. Product: Wine Version: 10.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: logos128@gmail.com Regression SHA1: 0cda91856138e1d49fcfd9b6c2c9328146616baa Distribution: ArchLinux
Happens only with the default (d3d11) renderer in fullscreen mode. The UseTakeFocus option is set to 'N' in the registry (HKCU\Software\Wine\X11 Driver\UseTakeFocus). Since this option is turned on by default in Wine, normally it doesn't cause the aforementioned issue. Although, it would be a problem for Proton, where UseTakeFocus is tuned off by default (https://github.com/ValveSoftware/wine/commit/d30ce49ed8b40b9c29b5cc374987cac...), as it helps some games launch properly. I use it to run Forza Horizon 5, etc., (Wine-Staging + patches + Steam).
I didn't notice this right away, as I use borderless in BeamNG, which works properly with UseTakeFocus=false.