xserver/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult 580f88464d dix: add generic Xinerama capable VRR infrastructure
We don't have a standard protocol for enabling VRR yet, but some time ago an
ad-hoc had been made in the amdgpu driver (later also copied to modsetting),
which works by client setting the _VARIABLE_REFRESH window property.

The way it's currently done - driver is highjacking the X_ChangeProperty and
X_DeleteProperty request handlers - is pretty fragile, and is also a violation
of layers: drivers never should be twisted with core protocol details. (And in
the future, this should be done by some suitable extension).

Another problem is Xinerama: when it's enabled, this only works on the first
screen - the others won't ever see this signal, no matter on which one(s) the
Window is physically placed (for the wire protocol, all windows are on screen 0,
unless the client explicitly creates them on another one)

This commit adds a generic Screen proc for telling the DDX, whether the VRR mode
shall be changed (for now, it's only DISABLED and ENABLED). Drivers can hook into
here in order to receive this signal, w/o having to highjack any core request
handlers. Catching the property change is now entirely done in the DIX.

The (non-standard) status qou of (ab)using window properties is kept, but it's
now also easy to add a new signaling mechanism, in case a standard is agreed on.

Yet a quite naive implementation (eg. not acting on moving windows between screens),
but enough to fix the most pressing problems supporting extra screens in general,
as well as stopping the highjacking of core request handlers by drivers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 17:21:45 +02:00
..
.gitignore
callback.h
client.h os: unexport client id retrieval functions 2024-10-10 13:45:29 +00:00
closure.h
colormap.h dix: move colormap flags into colormap_priv.h and rename them 2024-09-01 22:06:50 +00:00
colormapst.h dix: move SHAREDCOLOR struct declaration out of public header 2025-06-12 17:21:43 +02:00
cursor.h dix: drop superfluous XineramaGetCursorScreen() 2024-09-02 16:43:29 +00:00
cursorstr.h
displaymode.h
dix-config-apple-verbatim.h
dix.h dix: make LEGAL_NEW_RESOURCE() macro private 2025-06-12 17:21:43 +02:00
dixaccess.h
dixfont.h
dixfontstr.h
dixstruct.h os: split off internal definitions from client.h 2024-10-10 13:45:29 +00:00
events.h
eventstr.h
exevents.h XI: unexport XIPropToInt() and XIPropToFloat() 2025-06-12 16:25:48 +02:00
extension.h
extinit.h extinit: document why no*Extension fields need to be exported. 2025-06-12 16:50:18 +02:00
extinit_priv.h Xext: drop disable flag for GE extension 2025-02-26 13:34:19 +00:00
extnsionst.h
fourcc.h
gc.h
gcstruct.h fix name clash on 'GC' between Xlib and Xserver 2025-06-12 16:52:25 +02:00
globals.h include: unexport no*Extension flags 2025-02-07 12:00:58 +01:00
glx_extinit.h
glxvndabi.h
hotplug.h config: unexport config_pre_init() 2025-02-06 16:24:01 +01:00
input.h
inputstr.h dix: make MasksPerDetailMask define private 2025-06-12 17:21:43 +02:00
inpututils.h
list.h
meson.build dix: add generic Xinerama capable VRR infrastructure 2025-06-12 17:21:45 +02:00
misc.h os: unexport xstrtokenize() 2025-06-12 17:21:44 +02:00
miscstruct.h
nonsdk_extinit.h
opaque.h
optionstr.h
os.h os: log: drop now meaningless XLOG_FLUSH option 2025-06-12 17:21:45 +02:00
pixmap.h
pixmapstr.h treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
privates.h dix: use calloc() in _dixAllocateScreenObjectWithPrivates() 2025-06-12 17:21:43 +02:00
probes.h
property.h dix: unexport DeleteAllWindowProperties() 2024-09-02 17:50:47 +00:00
propertyst.h
protocol-versions.h xvmc: move over protocol version defines into xvmc.c 2025-02-06 23:29:10 +00:00
ptrveloc.h
region.h
regionstr.h include: use calloc() instead of malloc() 2025-06-12 16:49:49 +02:00
resource.h include/resource.sh: drop unused INVALID define 2025-06-12 17:21:43 +02:00
rgb.h
screenint.h
scrnintstr.h dix: add generic Xinerama capable VRR infrastructure 2025-06-12 17:21:45 +02:00
selection.h
servermd.h
swaprep.h dix: write out X_ListProperties reply directly 2025-06-12 17:21:42 +02:00
swapreq.h dix: unexport events related request handlers 2025-06-12 16:16:45 +02:00
systemd-logind.h
validate.h
vidmodestr.h
window.h dix: unexport and rename CreateWindow() 2025-06-12 17:21:43 +02:00
windowstr.h dix: replace wClient() macro by dixClientForWindow() inline function 2025-06-12 16:53:13 +02:00
xkb-config.h.in
xkbrules.h xkb: unexport XkbRF_RuleRec struct 2025-02-26 13:43:52 +00:00
xkbsrv.h xkb: unexport XkbCopyControls() 2025-06-12 17:21:45 +02:00
xkbstr.h
xorg-config.h.meson.in bsd: drop PCCONS support 2025-06-12 16:52:31 +02:00
xorg-server.h.meson.in bsd: drop PCCONS support 2025-06-12 16:52:31 +02:00
Xprintf.h os: drop Xasprintf() and Xvasprintf() 2025-06-12 16:54:13 +02:00
xserver-properties.h
Xserver.d
xwayland-config.h.meson.in
xwin-config.h.meson.in