xserver/include
Enrico Weigelt, metux IT consult 9cd7989eb2 (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-02-13 14:09:46 +01:00
..
.gitignore
Xprintf.h
Xserver.d
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
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 colormap flags into colormap_priv.h and rename them 2024-09-01 22:06:50 +00: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: add in-code docs for dixDestroyPixmap() 2025-02-12 17:48:30 +01:00
dix_screen_hooks.h (!1714) dix: add per-screen pixmap destructor mechanism 2025-02-13 14:09:44 +01:00
dixaccess.h
dixevents.h
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
eventstr.h
exevents.h include: move private definitions out of exevents.h 2024-04-30 00:47:38 +00:00
extension.h
extinit.h include: unexport no*Extension flags 2025-02-07 12:00:58 +01:00
extinit_priv.h include: unexport no*Extension flags 2025-02-07 12:00:58 +01:00
extnsionst.h
fourcc.h
gc.h dix: unexport SetClipRects() 2024-04-15 23:10:31 +00:00
gcstruct.h
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 include: move private definitions out of input.h 2024-09-01 17:59:23 +00:00
inputstr.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00
inpututils.h
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-02-13 14:09:46 +01:00
misc.h os: log: replace ErrorFSigSafe() by ErrorF() 2025-02-06 23:35:27 +00:00
miscstruct.h
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
os.h (!1682) os: log: drop now meaningless XLOG_FLUSH option 2025-02-13 14:09:44 +01:00
pixmap.h
pixmapstr.h
privates.h
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 dix: unexport SetAccelerationProfile() 2024-03-09 18:01:52 +00:00
region.h
regionstr.h
resource.h rename remaining RT_* defines to X11_RESTYPE_* 2024-04-15 19:00:47 -07:00
rgb.h
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-02-13 14:09:46 +01:00
selection.h
servermd.h
swaprep.h
swapreq.h dix: drop swapping request length fields 2025-02-06 22:28:51 +00:00
systemd-logind.h
validate.h
vidmodestr.h
window.h
windowstr.h
xkb-config.h.in
xkbrules.h
xkbsrv.h include: drop now empty xkbfile.h 2025-02-06 22:45:25 +00: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
xorg-server.h.meson.in (!1714) dix: add per-screen pixmap destructor mechanism 2025-02-13 14:09:44 +01:00
xserver-properties.h
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