ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
24.45k stars 1.07k forks source link

The Planet Crafter (1284190) #7453

Open damnkrat opened 9 months ago

damnkrat commented 9 months ago

Compatibility Report

System Information

I confirm:

Symptoms

Regression. 8.0-4 did not have this problem. Screenshot_20240128_201935 изображение The window is "minimized" to wine and is completely frozen because of this. Sometimes into a black screen

Reproduction

  1. Open game
  2. Alt + tab
  3. Alt + tab back to the game
  4. Game broken

Proton log: steam-1284190.log

alasky17 commented 8 months ago

@damnkrat We've tried to reproduce the failure that you are seeing with Proton 8.0-5 and we are stumped. Unfortunately this type of bug is basically impossible to fix unless we can reproduce locally :( I have a few more questions: 1) Just to confirm that this is a regression, could you test this Proton 8.0-4 build that I've uploaded? (Just to make sure this isn't a change in behavior due to a system update etc.) Build is uploaded to https://www.codeweavers.com/xfer/alasky/proton-8.0-stable/ with lock code "stable". To test: Drop proton-8.0-4c-redist.tar.zst into ~/.steam/steam/compatibilitytools.d/. and untar the bundle. Then restart Steam and it will show up in the Proton dropdown menu. To remove, delete the folder in compatibilitytools and restart Steam again. 2) It looks like you are using KDE + Xorg as your window manager. Is that correct? Do you have multiple monitors plugged in, any special monitor configuration, etc? 3) If you are using KDE, could you try different settings in Workspace -> Window Management -> Window Behavior -> Focus -> Focus stealing prevention and see if any changes this behavior? The options go from none to extreme, and right now mine is set to low. KDE has a ton of features that can be customized by the user in addition to that one. That is just one that I know has caused a difference in behavior with Wine in the past :) If you can think of any others that you have changed, please try changing them back to default (or give me a list).

damnkrat commented 8 months ago

Hey @alasky17

  1. No. Appears it is not regression
  2. No. I am using KDE + Wayland. Yes. My configuration is very specific… Red is refresh rate изображение
  3. The one you provided is not one who causing the problem.

I figured out that issue appears only when I change full screen mode to Full Screen (Exclusive).

And for some reason the window appears to have a title, but in game settings it is full-screen and title is disabled in KDE settings. Screenshot_20240218_225344

Let me know if you know how to copy list of all changed settings, if my new info didn't help a lot

damnkrat commented 8 months ago

Gentle ping. I checked all settings I changed related to window managing. It seems to be unrelated to plasma settings, but I'll check again when plasma 6.0 hits Manjaro testing

Also Proton experimental still has same issue at the moment

alasky17 commented 8 months ago

@damnkrat I don't want to give you false hope - unfortunately, since this is not a regression, this specific bug is not something we are actively working on. We do work on improving focus loss in general, but it is a slow process. It is an extremely challenging aspect of Wine, without even taking into account the large number of WMs and variation in monitors like you described above. For what it is worth, we were not able to reproduce this issue locally, so it is almost certainly due to something specific about your setup. It is possible that unplugging a monitor when you play Planet Crafter or something of that nature could fix this issue for you in the meantime :)

damnkrat commented 8 months ago

@alasky17 Sorry to say this only now, but I just now checked that physically and software disabling other monitors doesn't help in any way. Alt tabbing breaks the window, even when there is only 1 monitor. Tested on a 1080 and 2k monitor

damnkrat commented 3 months ago

The solution is done on KDE side!

When Alt+Tabbing through windows, tab keystrokes no longer leak into XWayland-using apps when using default XWayland app keyboard snooping setting (David Edmundson, Plasma 6.2.0. Link)