steamcompmgr: Set _NET_ACTIVE_WINDOW when raising X11 windows #2063
Open
navi-desu wants to merge 2 commits intoValveSoftware:masterfrom
Open
steamcompmgr: Set _NET_ACTIVE_WINDOW when raising X11 windows #2063navi-desu wants to merge 2 commits intoValveSoftware:masterfrom
navi-desu wants to merge 2 commits intoValveSoftware:masterfrom
Conversation
By EWMH, the root window should have _NET_ACTIVE_WINDOW holding the id of the currently focused window, some applications rely on it when _NET_ACTIVE_WINDOW is supported to track focus, including wine >= 10.0
Plagman
pushed a commit
to ValveSoftware/wine
that referenced
this pull request
Jan 19, 2026
…der gamescope. gamescope does not set the NET_ACTIVE_WINDOW property in the root window, meaning we can't rely on it to track focus or some games will keep input focus regardless of what window is on top gamescope pull request: ValveSoftware/gamescope#2063 CW-Bug-Id: #26217
3v1n0
reviewed
Jan 21, 2026
| Window id = xwayland().id; | ||
|
|
||
| XRaiseWindow(ctx->dpy, id); | ||
| XChangeProperty(ctx->dpy, ctx->root, XInternAtom(ctx->dpy, "_NET_ACTIVE_WINDOW", false), |
There was a problem hiding this comment.
Ideally you want to cache this: XInternAtom(ctx->dpy, "_NET_ACTIVE_WINDOW", false)
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.
By EWMH, the root window should have _NET_ACTIVE_WINDOW holding the id
of the currently focused window, some applications rely on it when
_NET_ACTIVE_WINDOW is supported to track focus, including wine >= 10.0