https://bugs.winehq.org/show_bug.cgi?id=47507
Bug ID: 47507 Summary: Regression: can't return to full-screen Civilization IV BTS window after Alt+Tab-ing to desktop since wine 4.10 Product: Wine Version: 4.12.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: igorkuo@meta.ua Distribution: ---
Steps to reproduce: 1. Run Civilization IV Beyond the Sword in full-screen mode and load a saved game. 2. Alt+Tab to another window. 3. Alt+Tab back to the Civilization window or click on the game window button. 4. Expected results (which actually happen with wine 4.9, 4.9-staging, 4.6 and many earlier versions): after a couple of seconds the game window becomes visible and works as if no window switching has occurred. 5. Actual results (which happen with wine 4.10, 4.10-staging, 4.11, 4.12, 4.12.1): even after minutes of waiting the game window is still hidden. The only thing the user can do about this is exit the game by closing its window from desktop.
System information: Manjaro 64-bit with latest updates. The regression affects both 32-bit and 64-bit wine prefixes. I'm using the native msxml3 version installed via winetricks, because without it the game crashes while loading a saved game. The issue happens both with built-in and native directx9. The regression affects both Xfce and KDE Plasma 5 desktop environments.
There is no meaningful difference (other than error message ordering, addresses) between wine 4.9 and 4.10 debug outputs (compared via Meld) while the bug is being reproduced.
https://bugs.winehq.org/show_bug.cgi?id=47507
Andreas wine@forsaken.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@forsaken.se
--- Comment #1 from Andreas wine@forsaken.se --- I'm having the same problem but in War thunder instead.
I've bisected it to:
82c6ec3a32f44e8b3e0cc88b7f10e0c0d7fa1b89 is the first bad commit
Reverting this commit in 4.10 solves the problem for me.
https://bugs.winehq.org/show_bug.cgi?id=47507
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com Regression SHA1| |82c6ec3a32f44e8b3e0cc88b7f1 | |0e0c0d7fa1b89
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #2 from Zhiyi Zhang zzhang@codeweavers.com --- I will take a look.
https://bugs.winehq.org/show_bug.cgi?id=47507
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #3 from Zhiyi Zhang zzhang@codeweavers.com --- Confirmed with 4.12-1.
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #4 from Zhiyi Zhang zzhang@codeweavers.com --- Andreas, I can't run War Thunder with wine-4.12-1 nor wine-staging 4.12-1. Did you use any workarounds?
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #5 from Andreas wine@forsaken.se --- You have to use the 32bit client, afaik the 64bit doesn't work.
I start it with: WINEPREFIX="/home/andreas/.wine32" WINESYNC=1 wine C:\\users\\andreas\\Local\ Settings\\Application\ Data\\WarThunder\\launcher.exe
I also use dxvk if that affects things.
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #6 from Zhiyi Zhang zzhang@codeweavers.com --- Created attachment 64938 --> https://bugs.winehq.org/attachment.cgi?id=64938 Send activate message after showing a minimized window
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #7 from Zhiyi Zhang zzhang@codeweavers.com --- Hi, could try this patch and see if it fix War Thunder? This fixed Civilization IV on my local machine.
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #8 from Andreas wine@forsaken.se --- Hello,
The patch solves the problem, thanks.
I tested on 4.12.1.
https://bugs.winehq.org/show_bug.cgi?id=47507
bgstack15@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bgstack15@gmail.com
--- Comment #9 from bgstack15@gmail.com --- Fedora 30 has wine 4.12.1 and Stronghold also is affected in an identical manner as described here. Downgrading to wine 4.5 solved it.
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #10 from Andreas wine@forsaken.se --- Zhiyi, any chance this will be integrated into mainline ?
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #11 from Zhiyi Zhang zzhang@codeweavers.com --- (In reply to Andreas from comment #10)
Zhiyi, any chance this will be integrated into mainline ?
The patch is still pending on the wine-devel mail list. I will try harder to convince people to get it in.
https://bugs.winehq.org/show_bug.cgi?id=47507
someuniquename@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |someuniquename@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=47507
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/user32-window-ac | |tivation CC| |leslie_alistair@hotmail.com Status|NEW |STAGED
https://bugs.winehq.org/show_bug.cgi?id=47507
Reinhard Berger geist1@sms.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |geist1@sms.at
--- Comment #12 from Reinhard Berger geist1@sms.at --- Still an problem under wine 5.0 Affected also Stronghold Crussader HD as well as Stronghold Crussader Extreme HD
Switching to Desktop with ALT+TAB from the game works, but when switching back o the game it looks like a screenshot of the Desktop and the game hung.
https://bugs.winehq.org/show_bug.cgi?id=47507
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chrylis@gmail.com
--- Comment #13 from Zhiyi Zhang zzhang@codeweavers.com --- *** Bug 46916 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #14 from Reinhard Berger geist1@sms.at --- Any fix in progress ?
https://bugs.winehq.org/show_bug.cgi?id=47507
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |3898ad408bb7ad50555ce6bce0f | |c02ab60eb5caf Resolution|--- |FIXED
--- Comment #15 from Zhiyi Zhang zzhang@codeweavers.com --- Fixed by 3898ad408bb7ad50555ce6bce0fc02ab60eb5caf
https://bugs.winehq.org/show_bug.cgi?id=47507
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.3.
https://bugs.winehq.org/show_bug.cgi?id=47507
--- Comment #17 from Reinhard Berger geist1@sms.at --- (In reply to Alexandre Julliard from comment #16)
Closing bugs fixed in 6.3.
Bug fix does not work on Stronghold Crusader HD. Still a problem with game freeze when switching back from Desktop to the game.
Last working Version was 4.9.
https://bugs.winehq.org/show_bug.cgi?id=47507
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=47507
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #18 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.1.