ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.21k stars 174 forks source link

Games still grabbing mouse events when the Steam Overlay is active #6856

Closed guihkx closed 4 years ago

guihkx commented 4 years ago

Your system information

Please describe your issue in as much detail as possible:

Whenever I open the Steam Overlay (Shift+Tab), any game running in background will still grab the mouse input, i.e., any left or right click made while the Steam Overlay is open, will also be grabbed by the game. This does not happen on Steam for Windows. I've tested this with some native and windows games (via Proton):

Steps for reproducing this issue:

  1. Launch GTA:SA using Proton (but it should work in any of the games I mentioned above)
  2. Open the Steam Overlay (Shift+Tab by default)
  3. Move your mouse cursor around; do some random left clicks
  4. Game will register everything, when it shouldn't
kisak-valve commented 4 years ago

Hello @guihkx, can you test if the workaround at https://github.com/ValveSoftware/steam-for-linux/issues/6506#issuecomment-537197719 has an effect? Possible duplicate of that issue report.

guihkx commented 4 years ago

Thanks for answering it so quickly!

I'm a bit confused though. Since I'm running the Flatpak build of Steam, wasn't it supposed to be using their own SDL build? And if they are, I'm not sure how I would be able to downgrade it.

Nonetheless, I've downgraded both sdl2 and lib32-sdl Arch packages to version 2.0.9, but had no effect.

EDIT: Downgrading the libSDL2-2.0.so.0 library from the steam-runtime directory had no effect either.

guihkx commented 4 years ago

Just to make sure this isn't related to Flatpak, I decided to install the regular steam package from Arch.

Then, I applied all of these workarounds, ran Steam with STEAM_RUNTIME=1, installed Terraria (native), and launched it.

Unfortunately, the game still grabs mouse events when the Steam Overlay is active.

TTimo commented 4 years ago

Thanks - this is a duplicate of #6506

As you noted, CS:GO doesn't pass button clicks so further work on that is low priority. But the other titles (Terraria) passing button clicks is new information so we'll look at this again.

guihkx commented 4 years ago

Thanks. I'm closing this one in favor of #6506, then.

blargle-ragequit commented 4 years ago

I'm having this issue with Steam version of Grand Theft Auto III on up-to-date Arch Linux, both with and without runtime enabled. Non-beta Steam, built Jul 8 2020 at 23:11:02, package versions 1594252496.

alexzk1 commented 2 years ago

Same problem yet. I just tried to use Overlay 1st ever time in Elite Dangerous. Space ship follows mouse while I browse web page there. Arch Linux here, everything is auto updated. Game is running in "borderless window" mode.