http://bugs.winehq.org/show_bug.cgi?id=57585 Piotr Respondek <piotr.respondek@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.respondek@gmail.com --- Comment #1 from Piotr Respondek <piotr.respondek@gmail.com> --- Created attachment 80394 --> http://bugs.winehq.org/attachment.cgi?id=80394 Patch: default UseTakeFocus to FALSE When UseTakeFocus is TRUE (current default), Wine defers window activation to the WM_TAKE_FOCUS protocol. This creates a race condition between Wine and the window manager that causes games and other fullscreen applications to lose input focus after alt-tabbing back, requiring a restart to regain control. Tested with: - BioShock Remastered (via Heroic/Proton, fullscreen) - DOOM 64 (via Heroic/Proton, fullscreen) Both games reliably lost input focus after alt-tab with UseTakeFocus=TRUE. After setting UseTakeFocus to FALSE (either via registry or this patch), focus is correctly restored every time via X11DRV_FocusIn(). The patch changes the default value of use_take_focus from TRUE to FALSE in dlls/winex11.drv/x11drv_main.c. Users who need the old behavior can still enable it via the registry key HKCU\Software\Wine\X11 Driver\UseTakeFocus. -- 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.