Alt-tab to minimize fullscreened Wine windows shows black screen instead
This is easiest to reproduce using the SteamPlay/Proton feature of Steam, which is a built-in fork of Wine available through the Steam client. It can also be reproduced using normal Wine with the win32 version of Steam. I'm testing with 3.28.3 as shipped by Arch Linux.
- Install Steam for Linux.
- Login and install the "Bejeweled 2 Deluxe Demo" game, which is free.
- Launch the game and click through the demo dialog. It should start fullscreen.
- Press Alt-Tab to try to get back to the desktop and Steam.
The problem: When you press alt-tab, you will get a black screen instead of your windows. The mouse will behave as if it were mousing over the windows beneath (e.g. I-cursor over terminal windows) and the keyboard focus is correctly given to the newly focused window. Pressing alt-tab again (or causing some other WM behavior??) will correctly display all of your windows again. You can then restore the game properly with alt-tab or the window switcher or whatever and it will continue behaving correctly. You can repeat the alt-tab to get the black screen behavior again at this point.