-
-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWayland game turns black after switching to another XWayland window. #6375
Comments
@vaxerski help me pls i can't play with a black game window |
My bad, I closed it because I thought it was working correctly, but I was actually running the last good commit so I reopened it. |
I have noticed that when running games through proton it black screens the game. You can run games fine if you make wine run in wayland mode which is highly experimental. (mileage may vary) You can also wrap your games in gamescope, but that has its own set of problems. eg. closing gamescope with a bind will not kill the wineserver/game causing weird behavior like failing to start the game the next time. |
can you post the output of xprop when clicking on the game when it's frozen? |
I have also noticed this only happens when the games are fullscreened. When they are windowed they behave as expected. These are some xprod outputs I have collected: Fullscreen WineNoita_WINE.txt Fullscreen ProtonNoita_PROTON.txt Same Games in Windowed (working)This is xprod of the windowed version of each game. They were working when xprod was used. |
can you also get an xprop from sway or something to compare it to a working one? |
using hyprland last good commit: |
xprop output from sway. Both are working as expected. Noita on protonHell Is Other Demons on wine |
hm, there are a few slight differences, but none that should matter... dunno what's up... |
:( |
feel free to tinker with the x props and other stuff, if there is something found that's obviously wrong that might be a lead. |
that looks like the game is attempting to minimize itself when it loses focus |
that is interesting, i wonder what did the commit change for the game to attempt to do so? i can't really figure it out myself since i don't know c++ :( |
@JonathanSteininger what are your system specs? |
the last commit 2566d81 just made it worse for me, now it turns black when unfocused |
this is also true on my side |
@vaxerski can I get code to to make xwayland full screen windows believe it has not lost focus to try it out? |
Used to be the case, but we forcefully un-minimize it... Maybe that's broken? Though the state is
sure patch.txt |
looks like my intuition was wrong, it still has the same behavior with the patch
is there other ways to un-minize it? ill try any code changes to try to fix this |
don't think so, afaik the only hint for minimizing is the ICONIC icccm state |
System Specs
|
any small, free game / app that can be tested? FWIW, I've launched:
None turned black. |
overwatch + fullscreen + protonge/winege |
edit: |
thanks :) will see what I can do if I don't forget tomorrow. |
sorry i made a mistake about just act natural, it works fine, i thought it didn't because momentarily i saw a black screen turns out it was just loading here is another one which has the bug: pico park: classic edition + fullscreen + protonge/winege |
possibly an issue with proton? only proton games seem to be affected |
have same issue with 2 games: elite dangerous and rabbits and steel. Both games become black after i switch workspaces. No matter whether i switch to xwindow or not. |
@gilesstockman The black screen will appear only on proton games, however the game window will freeze if you directly use wine. (doom 2016 and Planetbase, doom 2016 you can change settings ingame, however planetbase cannot be unfullscreened.) A workaround is using stayfocused windowrule, as then your mouse wont accidentally screw up that game, so you don't loose a save, however it makes your other monitor completely useless. One monitor setups wont be effected for that, as switching workspaces will make your game not focus, thus fucking up the game. I first checked if it was a wayland issue, but cinnamon on wayland is working perfectly as intended. |
@vaxerski Doom 2016, has this issue, steam sale is on, making the game cheap as all hell. if its not automatically on, turn on fullscreen ingame. Its like 5$ cad until july 11th |
Same issue here but in F1 23, it also turns black when losing focus. |
as long it's non fullscreen it works, the problem would be that some games only has fullscreen support which in that case you're stuck with the bug |
I have been having this issue for a long time and it is incredibly frustrating. the second my mouse comes off the game, it's "time to relaunch I guess" "fullscreen" and "fullscreen windowed" have this issue, however "windowed" does not. |
For me fullscreen windowed works just fine in all games, what game are you specifically having this issue in? |
Noita looks the same in all 3 modes: windowed, fullscreen (windowed), fullscreen (real). Windowed works fine, both fullscreen have the issue. Games might mislabel their modes or might have some minor implementation differences. |
Off the top of my head shadows of doubt has this issue, but there are a lot more I have noticed it in and just can't remember right now. Can't think of any free ones but as soon as I remember one I will share it.On Jul 15, 2024, at 01:20, UjinT34 ***@***.***> wrote:
"fullscreen" and "fullscreen windowed" have this issue, however "windowed" does not.
For me fullscreen windowed works just fine in all games, what game are you specifically having this issue in?
Noita looks the same in all 3 modes: windowed, fullscreen (windowed), fullscreen (real). Windowed works fine, both fullscreen have the issue. Games might mislabel their modes or might have some minor implementation differences.
If a game doesn't have a borderless mode or this mode doesn't work it's worth trying the windowed mode and making it fullscreen by workspace & window rules.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Some of the recent commits partially removed 2566d81 potentially bringing back #6468. As a result xwayland apps no longer turn black after losing focus until another xwayland app is focused. Some games can be brought back from this state by killing them and cancelling exit prompt and/or pressing alt+enter. Very inconsistent, most of the time works only once. |
This is just a wild guess, but could this be happening because windows apps that are fullscreened internally try to minimize themselves when unfocused, but Hyprland doesn't let them, which leads to issues? Would also explain why #6966 fixes it. |
I get exactly this issue but when I use gamescope, hmm. |
For the love of god, don't use gamescope |
Mafia: Definitive Edition still has the same problem. Cuphead is ok, but it is noteworthy that when switching to xwayland windows, the background sound disappears. |
System Info and Version
System/Version info
Bug or Regression?
Bug
Description
Running a game through XWayland (proton-ge/wine-ge) and then switching to another XWayland window will cause the game window to be black. Happens with games like: metro exodus, overwatch, green hell and likely many more (Some games like among us was not affected). If you switch to a Wayland window then it works as expected and the game does not turn to a black window.
How to reproduce
Crash reports, logs, images, videos
The text was updated successfully, but these errors were encountered: