Sway: Black screen on some Wine games after they lose focus

Created on 12 Jul 2019  路  7Comments  路  Source: swaywm/sway

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')

Debug Log with default config

Steps to reproduce:

  1. Start any of the listed games
  2. Switch to a different workspace, the game turns black at this point
bug

Most helpful comment

I notice this as well with other games.

All 7 comments

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:

https://github.com/neXromancers/uniconize

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WhyNotHugo picture WhyNotHugo  路  3Comments

DpoBoceka picture DpoBoceka  路  4Comments

Olie440 picture Olie440  路  4Comments

marcoms picture marcoms  路  3Comments

ghost picture ghost  路  4Comments