protonscr

Games still grabbing mouse events when the Steam Overlay is active

steamclosed overlay
ValveSoftware/steam-for-linux#6856 · opened 2020-01-29 by guihkx · updated 2026-08-11 · 9 comments · github
Gguihkx 2020-01-29 github

Your system information

  • Steam client version (build number or date): 1579996884 (Jan 25 2020, at 17:39:11)
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

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

  • CS:GO (native): Mouse clicks aren't passed to the game, but mouse movements are. To reproduce it, join a casual match, enter spectator mode ("free roam" mode), open the Steam overlay, and move you mouse around.
  • Terraria (native): Left/right clicks are 100% replicated by the game, which is really annoying when you need to do a Google search to retrieve some information in the game's wiki. Any mouse action you do will be registered by game, so if you've paused the game, you will be opening random options in the game's menu. If you didn't pause it, your character will attack things around you.
  • GTA:SA (Proton): This one is similar to Terraria, everything is registered by the game. It's easily reproducible too, just launch the game and wait until the main menu appears, then you open the Steam Overlay. You'll be able to notice that any mouse movement you do is immediately registered and replicated by the game.

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
Kkisak-valve maintainer 2020-01-29 github

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.

Gguihkx 2020-01-29 github

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.

Gguihkx 2020-01-29 github

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.

TTTimo 2020-02-04 github

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.

Gguihkx 2020-02-04 github

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

Bblargle-ragequit 2020-07-15 github

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.

Aalexzk1 2021-12-31 github

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.

AAlbatRaoz22 2026-04-16 github

Same problem still exists.

MMinoo122 2026-08-11 github

I've got the same issue for Mint