Skip to content

Keep keyboard focus on fullscreen Proton games - #13624

Closed
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-proton-stay-focused-e0d3
Closed

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-proton-stay-focused-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #13281

Fullscreen Proton games lost the keyboard while the mouse stayed responsive.

Change

  • Keep keyboard focus on fullscreen Proton games

Test plan

  • Launch a fullscreen Proton game; keyboard input should remain with the game

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-proton-stay-focused-e0d3 branch from 92b6346 to de51960 Compare September 29, 2026 21:10
@omarchybot omarchybot added the bug Something isn't working label Oct 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at de51960. As written, the new rule never applies, and the change it points at would not stop the focus loss either.

The class pattern does not match. Hyprland 0.56 matches rule regexes against the whole class (RE2::FullMatch), so class = "^steam_app_" at default/hypr/apps/steam.lua:10 matches only the literal steam_app_, never steam_app_2357570. The other rules here include the wildcard for this reason: steam.* on line 3 and ^(jetbrains-.*)$ in jetbrains.lua. On a worker built from the Omarchy ISO, with this branch loaded as the Hyprland config, a fullscreen XWayland window of class steam_app_2357570 reported hyprctl getprop … stay_focused as false.

stay_focused does not override on_focus_under_fullscreen = 1. With the pattern corrected to ^steam_app_.*, the property did read true, but the worker behaved exactly as it does on quattro. In both cases (a tiled window opening on the game's workspace, and a tiled window already there asking for focus) the other window took fullscreen from the game and got the keyboard, and keys typed afterwards never reached the game. That focus path in Hyprland does not consult stay_focused, which only steers mouse-driven refocus.

The reported symptom was not reproduced. In every case on quattro, the window that took the keyboard also took the screen, which is what on_focus_under_fullscreen = 1 is configured to do. The issue describes something different: the game keeps the picture while another window has the keys. That needs its trigger identified before a rule can be shown to fix it, and probably someone with the game to confirm it. The stand-in was a GTK window under XWayland, not a Proton game, so a game-specific trigger is still possible. #13281 was closed by its reporter without a comment, so it is not clear whether the problem still occurs. Two more points for whoever picks this up: test/shell.d/steam-proton-focus-test.sh only greps for the two strings, so it passes with the broken pattern, and battlenet.lua already puts Battle.net's launcher windows under a steam_app_ class.

Checked: ./test/cli on the worker (88 pass; vscode generated theme references current theme file fails identically on quattro, so it is unrelated) and the new shell test (passes). The second opinion, Codex Medium, reached the same conclusions. Independence is not guaranteed. It added the Hyprland source behind both points: the full-match engine, and the fullscreen focus path that ignores stay_focused.

Waiting on the author. Labelled bug; not marked verified.

AnPod commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing since the linked issue #13281 was closed.

@AnPod AnPod closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fullscreen Proton games lose the keyboard while the mouse stays

3 participants