Skip to content

fix: restore Steam overlay input on Wayland - #40

Merged
OwendB1 merged 1 commit into
mainfrom
fix/steam-overlay-input
Sep 6, 2026
Merged

OwendB1 merged 1 commit into
mainfrom
fix/steam-overlay-input

Conversation

@OwendB1

@OwendB1 OwendB1 commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Steam’s overlay renders over the native Wayland game, including its FPS counter, but Shift+Tab does not open it because SDL’s Wayland input bypasses Steam’s Xlib event hooks. Disabling the Pulsar splash and prompts does not fix this.

This change forwards keyboard input, and mouse input while the overlay is active, through Steam’s existing Xlib hooks using a hidden XWayland window. Steam retains control of the configured shortcut. Overlay activation releases relative mouse capture and suppresses game keyboard/mouse input; closing it restores the game’s mouse mode.

  • Keeps the game window and Vulkan surface on native Wayland. No SDL video-driver override or launch-argument changes.
  • Creates the bridge only for Linux x64 Wayland sessions with the Steam Vulkan overlay enabled and the required exports available. Requires XWayland; X11 games retain their existing input path.
  • Leaves SDL controller dispatch/polling unchanged and skips mouse forwarding while the overlay is closed.
  • Adds standalone checks and an optional SDL/Vulkan integration probe with a virtual gamepad. Reproduction commands are in tests/steam-overlay/README.md.

Validation:

  • Release client build: passed with no warnings or errors; CSharpier and git diff --check passed.
  • Standalone regression checks: passed.
  • Native Wayland probe: Shift+Tab opens/closes the overlay, pointer forwarding works, SDL focus remains on the game, and virtual controller axes/buttons/events continue before, during, and after toggling.
  • X11 baseline: no bridge created; virtual controller checks passed.
  • Full Space Engineers test: the user confirmed Shift+Tab works with this build on native Wayland, using the existing Interim.bin %command% launch path with -nosplash -noprompt.

Physical controller mappings, rumble, Steam Input overlay navigation, and broader keyboard-layout/IME behavior still need manual validation. The bridge depends on Steam’s exported hooks, which are not a public compatibility API.

Related: ValveSoftware/steam-for-linux#8020. The hidden Xlib input-proxy approach is also used by Proton-GE’s overlay bridge.

Forward native SDL input through Steam Xlib hooks using a hidden
XWayland proxy while keeping the game window and rendering on Wayland.
Preserve the existing X11, controller, and closed-overlay mouse paths.
@OwendB1
OwendB1 merged commit f3f80ce into main Sep 6, 2026
@OwendB1
OwendB1 deleted the fix/steam-overlay-input branch September 6, 2026 13:45
OwendB1 added a commit that referenced this pull request Sep 6, 2026
Bump LinuxCompat’s client assembly and file versions from 1.0.17.0 to
1.0.18.0 in both the source-compiled plugin attributes and MSBuild
metadata. This identifies the release containing the merged Wayland
Steam overlay input bridge (#40) and missing-native-dependency
diagnostics (#39).

PluginHub must update `Plugins/LinuxCompat.xml` to a commit containing
this bump before Pulsar users receive it. A plugin update does not
require a new Pulsar release or native dependency archives.

Validation: Release builds passed for ClientPlugin and ServerPlugin.
Both emitted only the expected warning that local deployment was
skipped. CSharpier and `git diff --check` passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant