Skip to content

Comments

add ability to restore the focus just by the update the prop#2086

Open
l12436 wants to merge 1 commit intoValveSoftware:masterfrom
l12436:allow-single-application-to-use-prop-GAMESCOPECTRL_BASELAYER_WINDOW-to-override-focus
Open

add ability to restore the focus just by the update the prop#2086
l12436 wants to merge 1 commit intoValveSoftware:masterfrom
l12436:allow-single-application-to-use-prop-GAMESCOPECTRL_BASELAYER_WINDOW-to-override-focus

Conversation

@l12436
Copy link

@l12436 l12436 commented Feb 14, 2026

Add ability to use GAMESCOPECTRL_BASELAYER_WINDOW to force SingleApplication to focus game windows.

I need this because I am using Wine to execute Steam without a desktop environment.
In some cases, Steam restarts itself. When this happens, it may completely take over the input focus, making it impossible to return focus to the intended window.

This is a conceptual solution that allows the user to manually override the focus when such situations occur.

Although there is an existing SteamControlled strategy, I prefer not to fully manage or control focus behavior myself.
I only need a lightweight mechanism that allows overriding the focus when it becomes incorrect.

You can use xprop -f GAMESCOPECTRL_BASELAYER_WINDOW 32x1 -set GAMESCOPECTRL_BASELAYER_WINDOW "XXXX" to change the x11 prop value to trigger the focus change if the focus is incorrect

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