Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
888 stars 159 forks source link

[Edited] Overwatch loses mouse input focus upon respawn/Mercy resurrection, acting as if the game is minimised. #598

Open FuzzyQuils opened 2 years ago

FuzzyQuils commented 2 years ago

Heyo, finally decided to try a nightly build of tkg wine from upstream and installed it over 6.17 (6.21 is what I'm running now)

Upon using it with Overwatch, I've hit a rather annoying issue; every time I die, upon respawn the mouse is no longer locked to the window and I can't aim in-game anymore. A workaround is to alt-tab out then back in again and it fixes itself.

It seems anything triggering a fading transition on respawn causes the mouse to unlock itself from the window.

To reproduce:

Fullscreen/Borderless/Windowed doesn't seem to change the outcome.

System specs:

I can work around it with alt-tab but it's seriously annoying to do + this could really blow up bad if playing ranked and suddenly mouse movement gets lost. (on the bright side futex2 no longer crashes Overwatch on launch, so having this bug fixed would be amazing)

Update: maybe ignore this? removing the WINEDEBUG=-all line (or setting it to +err,fixme) in my launch script seems to have fixed it. Not sure as to why, and given the performance penalty from logging, kinda sad. might find a better workaround soon.

Update 2: issue resurfaced after a reboot, and it appears the framerate also drops to 60 on respawn when the mouse stops working, suggesting that there's a really bad window focus bug going on. (alt-tabbing/playing in windowed seems to fix it)

Update 3: can't repro again, seems to be Compiz 0.9 on MATE affecting it this time. (Openbox where it originally happened is now behaving!) It's so intermittent it's annoying.

Tk-Glitch commented 2 years ago

Possibly fixed with https://github.com/Frogging-Family/wine-tkg-git/commit/a4a78c5898ce468dd0e34ce6460dc280737e5236

FuzzyQuils commented 2 years ago

Possibly fixed with a4a78c5

It sure definitely seemed to be fixed, but now if I do get the issue, it seems to be specifically KDE causing the bugs, (Other Window Managers/DEs don't have the issue) so I'll be filing a bug there as well.

(Appears to be window focus bugs related to window thumbnails as I was also getting freezing from it)

Edit: apparently I was on Plasma-wayland which does get some weird window-focus bugs at times, Plasma X11 doesn't have the issue.

biggestsonicfan commented 2 years ago

I get a similar issue. Play Overwatch, alt+tab out, alt+tab back in, and in any instance where you have a cursor in the game (hero select, menus, between rounds, etc...) clicking will click-focus behind the Overwatch window.