https://bugs.winehq.org/show_bug.cgi?id=46916
Bug ID: 46916 Summary: Can't restore focus to certain minimized fullscreen applications Product: Wine Version: 4.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: chrylis@gmail.com Distribution: ---
Created attachment 64004 --> https://bugs.winehq.org/attachment.cgi?id=64004 stderr logs
This is a counterpart to the many (mostly resolved?) bugs regarding switching *out* of fullscreen applications. On some applications, I can switch out of the window without any problem. If the application has changed the desktop resolution, it is restored to the previous setting (e.g., 1920x1080->3840x2160).
However, I cannot restore focus to the application once it loses focus. The application will unminimize (from the taskbar or the window switcher), and the mouse cursor changes to the appropriate graphics, but the application seems never to be unblurred; it's not redrawn (I believe this is its own choice when it thinks it doesn't have focus), and the "bookmarked" resolution isn't applied. The application does not respond to input, and I have to kill Wine from the CLI.
The applications I have available where I'm able to reproduce the behavior are based on the Civ4 engine (Civ4 itself, Railroads!). The behavior is identical regardless of whether the application changes the screen resolution (if it hasn't, then it'll switch back to full screen and show the last render but is still frozen). Fallout 2, with or without Restoration, does *not* reproduce the behavior. It may be linked to D3D.
I'm running KWin 5.14.5 on Intel graphics.
https://bugs.winehq.org/show_bug.cgi?id=46916
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46916
Sorpigal sorpigal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sorpigal@gmail.com
--- Comment #1 from Sorpigal sorpigal@gmail.com --- I can confirm something that sounds just like this when I run Dungeons and Dragons Online.
I bisected it down to 82c6ec3a32f44e8b3e0cc88b7f10e0c0d7fa1b89 which is certainly changing something related, but doesn't *seem* like it should cause the problem. However, I just tested this on top of master (qb253bd65658fe7dde8e50d7f7e6930cd215282df) and confirmed that it fails as described, then I reverted just the changes from 82c6ec3a32 and confirmed that it once again works as expected. Super not clear why, but there it is.
DDO is free to play so testing this is possible for anyone. You only need to get to the character selection screen, then alt+tab out (or switch desktops with a keyboard shortcut, which has the same effect for me on e16), and then try to switch back. At 82c6ec3a32f44e8b3e0cc88b7f10e0c0d7fa1b89^1 I re-enter immediately, but one commit later I get the cursor change but no repaint, no game audio, and nothing responds--I must kill the process.
Not attaching logs yet because I have not yet tried this with a clean prefix (just with my normal DDO prefix), but my prefix is vanilla enough that it probably is not making any difference. If someone really needs this let me know; after having just rebuilt wine 29 times in a row and finally have a working version I am not eager to do it again!
I am available to re-test, try patches, or provide more information any time.
https://bugs.winehq.org/show_bug.cgi?id=46916
Sorpigal sorpigal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=46916
--- Comment #2 from Zhiyi Zhang zzhang@codeweavers.com --- Possible duplicate of https://bugs.winehq.org/show_bug.cgi?id=47507. Could you try https://github.com/wine-staging/wine-staging/tree/master/patches/user32-wind...
https://bugs.winehq.org/show_bug.cgi?id=46916
--- Comment #3 from Sorpigal sorpigal@gmail.com --- (In reply to Zhiyi Zhang from comment #2)
Confirmed. With master + that patch I also get expected behavior. I think this looks like a duplicate as you say. Once so marked I would be happy to note that your patch fixes this for DDO on the other bug report, if you like, or whatever else you think might help it get merged.
https://bugs.winehq.org/show_bug.cgi?id=46916
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #4 from Zhiyi Zhang zzhang@codeweavers.com --- Marking duplicate
*** This bug has been marked as a duplicate of bug 47507 ***
https://bugs.winehq.org/show_bug.cgi?id=46916
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate