Skip to content

LUA Ayaneo 3#11

Open
sknowledge1 wants to merge 11 commits into
OpenGamingCollective:masterfrom
sknowledge1:master
Open

LUA Ayaneo 3#11
sknowledge1 wants to merge 11 commits into
OpenGamingCollective:masterfrom
sknowledge1:master

Conversation

@sknowledge1

Copy link
Copy Markdown

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

Block 0, Base EDID:
EDID Structure Version & Revision: 1.4
Vendor & Product Identification:
Manufacturer: AYA
Model: 275
Serial Number: 539232513 (0x20240901)
Made in: week 25 of 2024
Basic Display Parameters & Features:
Digital display
Bits per primary color channel: 10
DisplayPort interface
Maximum image size: 9 cm x 15 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4, YCrCb 4:4:4
Default (sRGB) color space is primary color space
First detailed timing includes the native pixel format and preferred refresh rate
Color Characteristics:
Red : 0.6396, 0.3300
Green: 0.2998, 0.5996
Blue : 0.1503, 0.0595
White: 0.3095, 0.3095
Established Timings I & II: none
Standard Timings: none
Detailed Timing Descriptors:
DTD 1: 1080x1920 120.000445 Hz 9:16 238.081 kHz 323.790000 MHz (154 mm x 87 mm)
Hfront 80 Hsync 44 Hback 156 Hpol P
Vfront 48 Vsync 2 Vback 14 Vpol P
DTD 2: 1080x1920 144.112458 Hz 9:16 285.919 kHz 388.850000 MHz (154 mm x 87 mm)
Hfront 80 Hsync 44 Hback 156 Hpol P
Vfront 48 Vsync 2 Vback 14 Vpol P
DTD 3: 1080x1920 60.001470 Hz 9:16 116.643 kHz 146.970000 MHz (154 mm x 87 mm)
Hfront 90 Hsync 18 Hback 72 Hpol P
Vfront 14 Vsync 2 Vback 8 Vpol P
Display Product Name: 'AYAOLED_FHD'
Extension blocks: 1
Checksum: 0xf4

Thank you!

navi-desu and others added 11 commits July 7, 2026 18:46
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 pastaq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has quite a few unrelated changes pulled in. Can you please isolate the commit that brings in just the LUA script?

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.

7 participants