I observed this on Dark Souls 1, Zero Escape VLR and Earth Defense Force 5. After losing focus (moving mouse out of game window, switching workspace) the game window turns black without any way of getting an image back besides restarting the game. EDF still shows a cursor though.
I tested Dark Souls 1 on GNOME Wayland and could not reproduce this behavior.
sway version 1.1-rc1-61-gc312a10c (Jul 11 2019, branch 'master')
Steps to reproduce:
I notice this as well with other games.
Might be unrelated, but something similar happens with Dota 2 (sdl, xwayland). It doesn't happen when the game is in "borderless windowed" mode though
FWIW, this also happens with Wayfire.
Also Car Mechanic Simulator 2018. Sometimes it doesn't happen the first time, but will happen the second time.
Lost a bit of progress in the game due to this >:(
It doesn't happen when the game is in "borderless windowed" mode though
Cheers, experienced this with The Walking Dead game and turning off fullscreen in the settings did the trick.
I have also had this same bug with Doom Eternal (which uses vulkan, if that makes a difference)
Note that this problem can be worked around by running the uniconize daemon or a program/script with similar functionality:
Most helpful comment
I notice this as well with other games.