LUA Ayaneo 3#11
Open
sknowledge1 wants to merge 11 commits into
Open
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
93cf2b4 split focus handling into separate keyboard and mouse blocks, but added a second copy of the bResetToCorner/Center warp to the new keyboard block. The keyboard block runs before pointer focus is handed to the new window via wlserver_mousefocus, so on handhelds the warp is delivered to the still-focused game and can warp the camera when opening the QAM. Keep the warp only in the mouse focus block, where it runs after the pointer handoff. Closes: ValveSoftware/SteamOS#2441
It's deprecated because it doesn't actually describe how sRGB content should be displayed, and gamescope didn't use it either way.
Since a563226 the focus window can keep a non-zero X11 origin. Compositing ignores that origin, but override layer offsets, fit sizing, and dropdown cursor bounds still used absolute root coordinates, so dropdowns and Xalia's highlight rendered shifted by the focus window's origin. Position overrides relative to the focus window instead. No behavior change intended when it sits at (0, 0).
dac83bb stamped _NET_ACTIVE_WINDOW from every Raise(), including raises of override-redirect windows and any newly mapped window with input hints, while real keyboard focus stayed on the toplevel. wine >= 10.0 treats the property as the foreground window, so it deactivated the window actually receiving input, leaving launcher buttons and prompts unclickable. Set the property alongside XSetInputFocus instead so it always reflects the window that really holds keyboard focus.
Wine uses a 1x1 X window to represent an empty window rect, and Assassin's Creed Black Flag Resynced passes through this state when switching from SDR to HDR. The toplevel goes 1x1 while the client window keeps its full size, and the game re-queries surface formats in a loop until an HDR10 format appears, so failing bypass here hides the HDR formats and leaves it hanging on a black screen. A 1x1 toplevel is not a real size to validate the client window against, so ignore it.
pastaq
requested changes
Jul 20, 2026
pastaq
left a comment
Member
There was a problem hiding this comment.
This has quite a few unrelated changes pulled in. Can you please isolate the commit that brings in just the LUA script?
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.
The handheld Ayaneo 3 shows washed out colours in game mode - colours look fine on desktop.
I got the vendor and model from my Ayaneo 3
Thank you!