add ability to restore the focus just by the update the prop#2086
Open
l12436 wants to merge 1 commit intoValveSoftware:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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