XLibre Xserver
Go to file
Enrico Weigelt, metux IT consult 1f8e29cde9 (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>
2024-10-31 19:23:55 +01:00
.gitlab-ci (!1675) ci: enable xv and xvmc 2024-10-31 19:23:52 +01:00
Xext (submit/recv-fds) os: read file descriptors into client struct at once 2024-10-31 19:23:55 +01:00
Xi (!1639) Xi: drop now obsolete swap procs 2024-10-31 19:23:55 +01:00
composite (!1639) composite: drop swapping request length fields 2024-10-31 19:23:54 +01:00
config drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
damageext (!1639) damage: drop swapping request length fields 2024-10-31 19:23:54 +01:00
dbe (!1639) dbe: drop now obsolete swap procs 2024-10-31 19:23:55 +01:00
dix (submit/vrr-driver-api) dix: add generic Xinerama capable VRR infrastructure 2024-10-31 19:23:55 +01:00
doc (!1711) document that ScreenRec->DestroyPixmap() shouldn't be called directly 2024-10-31 19:23:49 +01:00
dri3 (submit/recv-fds) os: read file descriptors into client struct at once 2024-10-31 19:23:55 +01:00
exa (!1714) exa: use PixmapDestroy hook 2024-10-31 19:23:51 +01:00
fb (!1705) xwin: drop wrapping on ScreenRec->ModifyPixmapHeader() 2024-10-31 19:23:51 +01:00
glamor (!1714) glamor: use PixmapDestroy hook 2024-10-31 19:23:51 +01:00
glx (!1665) glx: DoQueryContext(): use core's swapping macros 2024-10-31 19:23:54 +01:00
hw (submit/xnest-config.h) Xnest: drop obsolete xnest-config.h 2024-10-31 19:23:55 +01:00
include (submit/vrr-driver-api) dix: add generic Xinerama capable VRR infrastructure 2024-10-31 19:23:55 +01:00
man Xserver.man: Note that -byteswappedclients is the default in this release 2024-03-23 10:27:03 -07:00
mi (submit/xnest-config.h) mi: drop special include hack for Xnest 2024-10-31 19:23:55 +01:00
miext (!1703) miext: rootless: fix unused variables 2024-10-31 19:23:51 +01:00
os (submit/recv-fds) os: read file descriptors into client struct at once 2024-10-31 19:23:55 +01:00
present (!1639) present: drop swapping request length fields 2024-10-31 19:23:54 +01:00
pseudoramiX (!1639) pseudoramiX: drop swapping request length fields 2024-10-31 19:23:54 +01:00
randr (submit/xrandr-swap-fix) randr: fix wrong call to RRGetScreenResources() in swapped case 2024-10-31 19:23:55 +01:00
record (!1639) record: drop swapping request length fields 2024-10-31 19:23:54 +01:00
render (!1639) render: drop swapping request length fields 2024-10-31 19:23:54 +01:00
test (!1639) Xi: drop swapping request length fields 2024-10-31 19:23:55 +01:00
xfixes (!1639) xfixes: drop swapping request length fields 2024-10-31 19:23:54 +01:00
xkb (!1639) xkb: drop swapping request length fields 2024-10-31 19:23:54 +01:00
.appveyor.yml appveyor: Add libxcvt build dep 2021-11-04 13:03:25 +00:00
.dir-locals.el .dir-locals.el: Add missing final newline 2019-10-01 17:05:28 +00:00
.gitignore Clean up the .gitignore file 2024-01-12 00:50:24 +00:00
.gitlab-ci.yml (!1675) ci: enable xv and xvmc 2024-10-31 19:23:52 +01:00
.mailmap Add a .mailmap file to canonicalize author names and emails 2023-03-15 18:10:51 +00:00
.travis.yml travis: Add OSX meson build to matrix 2019-05-02 15:42:58 +00:00
COPYING modesetting: Merge modesetting's COPYING into the xserver's. 2014-09-15 12:46:02 -07:00
README.md Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
meson.build (!1654) Xnest: dont link Xlib anymore 2024-10-31 19:23:54 +01:00
meson_options.txt os: drop SUN-DES-1 authentication 2024-06-18 00:52:11 +00:00
xorg-server.m4 xorg-server.m4: just all cflags instead of just sdkdir 2018-09-20 20:12:24 +01:00
xorg-server.pc.in xfree86: link modules against Xorg symbols on Cygwin 2012-04-05 21:57:07 -05:00
xserver.ent.in doc: relocate xserver.ent in the package root directory 2011-05-14 11:22:26 -07:00

X Server

The X server accepts requests from client applications to create windows, which are (normally rectangular) "virtual screens" that the client program can draw into.

Windows are then composed on the actual screen by the X server (or by a separate composite manager) as directed by the window manager, which usually communicates with the user via graphical controls such as buttons and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the following article: https://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.freedesktop.org/mailman/listinfo/xorg

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/xserver

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

As with other projects hosted on freedesktop.org, X.Org follows its Code of Conduct, based on the Contributor Covenant. Please conduct yourself in a respectful and civilized manner when using the above mailing lists, bug trackers, etc:

https://www.freedesktop.org/wiki/CodeOfConduct