XLibre Xserver
Go to file
Enrico Weigelt, metux IT consult 9b14c36094 dix: add per-screen pixmap destructor mechanism
Right now, extension specific pixmap destruction procedures are implemented
by wrapping the ScreenRec's DestroyPixmap() proc pointer: the extensions are
storing the original pointer in their private data and putting in their own one.
On each call, their proc restores the original one, calls it, and switches back
again. When multiple extensions doing so, they're forming a kind of daisy chain.
(the same is done for lots of other procs)

While that approach is looking nice and elegant on the drawing board, it's
complicated, dangerous like a chainsaw and makes debugging hard, leading to
pretty blurred API borders.

It's even getting worse: the proc also has to do ref counting, and only destroy
the pixmap if refconter reaching zero - that's all done in the individual screen
drivers. Therefore, all extensions must check for refcnt == 1, in order to know
when to really act.

This commit introduces a simple approach for letting extension hook into the
pixmap destruction safely, w/o having to care much about side effects with
the call chain. Extensions now can simply register their destructor proc
(and an opaque pointer) and get called back - w/o ever having to mess with
the ScreenRec's internal structures.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-07 14:21:28 +02:00
.gitlab-ci (!1675) ci: enable xv and xvmc 2024-10-04 13:49:02 +02:00
Xext xvmc: use CloseScreen hook 2024-10-07 14:21:28 +02:00
Xi (!1688) os: unexport internal logging functions 2024-10-04 13:49:05 +02:00
composite composite: use window position notify hook 2024-10-07 14:21:28 +02:00
config (!1688) os: unexport internal logging functions 2024-10-04 13:49:05 +02:00
damageext (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-10-04 13:49:05 +02:00
dbe dbe: use window position notify hook 2024-10-07 14:21:28 +02:00
dix dix: add per-screen pixmap destructor mechanism 2024-10-07 14:21:28 +02:00
doc (!1711) doc: document that ScreenRec->DestroyPixmap() shouldn't be called directly 2024-10-03 12:33:55 +02:00
dri3 dri3: use CloseScreen hook 2024-10-07 14:21:28 +02:00
exa (submit/drop-obsolete-have-dix-config.h) drop obsolete HAVE_DIX_CONFIG_H 2024-10-04 13:49:04 +02:00
fb (!1705) xwin: drop wrapping on ScreenRec->ModifyPixmapHeader() 2024-10-04 13:49:06 +02:00
glamor (submit/drop-obsolete-have-dix-config.h) drop obsolete HAVE_DIX_CONFIG_H 2024-10-04 13:49:04 +02:00
glx (!1691) os: log: replace LogMessageVerbSigSafe() by LogMessageVerb() 2024-10-04 13:49:05 +02:00
hw xwayland: use window destructor hook instead of wrapping ScreenRec's DestroyWindow 2024-10-07 14:21:27 +02:00
include dix: add per-screen pixmap destructor mechanism 2024-10-07 14:21:28 +02:00
man Xserver.man: Note that -byteswappedclients is the default in this release 2024-03-23 10:27:03 -07:00
mi dix: add per-screen window position notify hook 2024-10-07 14:21:28 +02:00
miext rootless: use window position notify hook 2024-10-07 14:21:28 +02:00
os os: replace GenerateRandomData() by custom arc4random_buf() on platforms that missing it 2024-10-04 13:49:05 +02:00
present present: use window destructor hook instead of wrapping ScreenRec's DestroyWindow 2024-10-07 14:21:27 +02:00
pseudoramiX (!1690) pseudoramiX: fix warning from unused REQUEST() macro calls 2024-10-04 13:49:05 +02:00
randr (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-10-04 13:49:05 +02:00
record WIP: reorder includes 2024-10-04 13:49:05 +02:00
render render: use CloseScreen hook 2024-10-07 14:21:28 +02:00
test (!1691) os: log: replace LogMessageVerbSigSafe() by LogMessageVerb() 2024-10-04 13:49:05 +02:00
xfixes xfixes: use CloseScreen hook 2024-10-07 14:21:28 +02:00
xkb (!1695) dix: unexport Ones() 2024-10-04 13:49:05 +02: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 ci: always build with drivers 2024-10-04 13:49:05 +02: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 (!1688) meson.build: move writing conf_data into tail of main meson file 2024-10-04 13:49:05 +02: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

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