xserver/include
Enrico Weigelt, metux IT consult 0f38f8c2b6 (submit/vrr-driver-api) 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-03 11:37:38 +02:00
..
.gitignore Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
Xprintf.h (!1898) os: drop Xasprintf() and Xvasprintf() 2025-06-03 11:37:34 +02:00
Xserver.d Remove "All rights reserved" from Oracle copyright notices 2023-02-25 09:40:41 -08:00
callback.h dix: unexport callback manager init / teardown functions 2024-03-12 15:18:17 +00:00
client.h os: unexport client id retrieval functions 2024-10-10 13:45:29 +00:00
closure.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
colormap.h dix: move colormap flags into colormap_priv.h and rename them 2024-09-01 22:06:50 +00:00
colormapst.h (1841) dix: move SHAREDCOLOR struct declaration out of public header 2025-06-03 11:37:36 +02:00
cursor.h dix: drop superfluous XineramaGetCursorScreen() 2024-09-02 16:43:29 +00:00
cursorstr.h cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
displaymode.h hw/xfree86: re-calculate the clock and refresh rate 2023-12-22 05:02:05 +00:00
dix-config-apple-verbatim.h Move the apple fat binary hacks back to a header file, and make it apple-only. 2009-01-30 16:36:45 -08:00
dix.h (1859) dix: make LEGAL_NEW_RESOURCE() macro private 2025-06-03 11:37:35 +02:00
dixaccess.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dixfont.h include: drop unused including of closure.h 2024-03-03 22:42:41 +00:00
dixfontstr.h include: dixfontstr.h: drop silent dependency on libxfont2 2024-09-01 17:45:13 +00:00
dixstruct.h os: split off internal definitions from client.h 2024-10-10 13:45:29 +00:00
events.h xi: Implement internal gesture event struct 2021-05-30 13:26:31 +03:00
eventstr.h mi: reset the PointerWindows reference on screen switch 2023-10-25 00:37:47 +00:00
exevents.h (!1986) XI: unexport XIPropToInt() and XIPropToFloat() 2025-06-03 11:37:30 +02:00
extension.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
extinit.h (!1933) extinit: document why no*Extension fields need to be exported. 2025-06-03 11:37:34 +02:00
extinit_priv.h Xext: drop disable flag for GE extension 2025-02-26 13:34:19 +00:00
extnsionst.h dix: Remove extension aliases 2017-06-20 16:37:24 -04:00
fourcc.h glamor: xv: add rgb565 2023-11-29 21:18:29 +00:00
gc.h dix: unexport SetClipRects() 2024-04-15 23:10:31 +00:00
gcstruct.h (!1393) fix name clash on 'GC' between Xlib and Xserver 2025-06-03 11:37:34 +02:00
globals.h include: unexport no*Extension flags 2025-02-07 12:00:58 +01:00
glx_extinit.h miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
glxvndabi.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
hotplug.h config: unexport config_pre_init() 2025-02-06 16:24:01 +01:00
input.h include: move private definitions out of input.h 2024-09-01 17:59:23 +00:00
inputstr.h (1836) dix: make MasksPerDetailMask define private 2025-06-03 11:37:36 +02:00
inpututils.h Implement gesture processing logic 2021-05-30 13:26:42 +03:00
list.h include: drop obsolete check for typeof operator 2024-04-22 22:15:45 +00:00
meson.build (submit/vrr-driver-api) dix: add generic Xinerama capable VRR infrastructure 2025-06-03 11:37:38 +02:00
misc.h (!1801) os: unexport xstrtokenize() 2025-06-03 11:37:37 +02:00
miscstruct.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
nonsdk_extinit.h include: move private definitions out of extinit.h 2024-04-30 00:47:38 +00:00
opaque.h os: unexport fields from opaque.h not used by modules / drivers 2024-06-23 21:19:27 +00:00
optionstr.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
os.h (!1682) os: log: drop now meaningless XLOG_FLUSH option 2025-06-03 11:37:38 +02:00
pixmap.h dix: Remove pScratchPixmap and other associated ABI changes 2022-12-30 01:32:25 +00:00
pixmapstr.h (!1944) treewide: drop COMPOSITE symbol 2025-06-03 11:37:33 +02:00
privates.h (1866) dix: use calloc() in _dixAllocateScreenObjectWithPrivates() 2025-06-03 11:37:35 +02:00
probes.h Remove "All rights reserved" from Oracle copyright notices 2023-02-25 09:40:41 -08:00
property.h dix: unexport DeleteAllWindowProperties() 2024-09-02 17:50:47 +00:00
propertyst.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
protocol-versions.h xvmc: move over protocol version defines into xvmc.c 2025-02-06 23:29:10 +00:00
ptrveloc.h dix: unexport SetAccelerationProfile() 2024-03-09 18:01:52 +00:00
region.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
regionstr.h (!1909) include: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
resource.h (1855) include/resource.sh: drop unused INVALID define 2025-06-03 11:37:35 +02:00
rgb.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
screenint.h Revert "dix: unexport AttachOutputGPU() and DetachOutputGPU()" 2024-09-01 20:38:01 +00:00
scrnintstr.h (submit/vrr-driver-api) dix: add generic Xinerama capable VRR infrastructure 2025-06-03 11:37:38 +02:00
selection.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
servermd.h dix: Fix image byte order on big endian hardware 2015-05-07 14:03:50 -04:00
swaprep.h (!1893) dix: write out X_ListProperties reply directly 2025-06-03 11:37:35 +02:00
swapreq.h (!2007) dix: unexport events related request handlers 2025-06-03 11:37:28 +02:00
systemd-logind.h xf86/logind: Fix compilation error when built without logind/platform bus 2021-12-20 16:56:14 +01:00
validate.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
vidmodestr.h vidmode: build without xf86vidmodeproto 2016-03-01 11:25:59 -05:00
window.h (1867) dix: unexport and rename CreateWindow() 2025-06-03 11:37:35 +02:00
windowstr.h (!1899) dix: replace wClient() macro by dixClientForWindow() inline function 2025-06-03 11:37:34 +02:00
xkb-config.h.in Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
xkbrules.h xkb: unexport XkbRF_RuleRec struct 2025-02-26 13:43:52 +00:00
xkbsrv.h (!1799) xkb: unexport XkbCopyControls() 2025-06-03 11:37:38 +02:00
xkbstr.h include: xkbstr.h: fix missing include of Xdefs.h 2024-04-09 06:50:20 +00:00
xorg-config.h.meson.in (!1902) bsd: drop PCCONS support 2025-06-03 11:37:34 +02:00
xorg-server.h.meson.in (!1902) bsd: drop PCCONS support 2025-06-03 11:37:34 +02:00
xserver-properties.h Add missing labels for multitouch valuators 2012-10-30 15:11:10 +10:00
xwayland-config.h.meson.in xwayland/glamor: Drop the EGLStream backend 2024-03-18 15:41:17 +00:00
xwin-config.h.meson.in xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00