xserver/hw/xfree86
Enrico Weigelt, metux IT consult e6b506d46f (!1714) dix: add per-screen close notify hook
Right now, extension specific actions on screen closing implemented by wrapping
the ScreenRec's PositionWindow() 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.

This commit introduces a simple approach for letting extension hook into the
screen closing path safely, w/o having to care much about side effects with
the call chain. Extensions now can simply register their hook proc (and an
opaque pointer) and get called back - w/o ever having to mess with the
ScreenRec's internal structures. These hooks are called before the original
vector (usually handled by DDX/screen driver directly) is called.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-22 17:34:46 +02:00
..
common (!1714) dix: add per-screen close notify hook 2025-05-22 17:34:46 +02:00
ddc (!1969) xfree86: ddc: safety check for NULL pointer 2025-05-22 17:34:41 +02:00
dixmods xfree86: shmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
doc (!1997) xfree86: fbman: drop unused xf86FBManagerRunning() 2025-05-22 17:34:34 +02:00
dri (!1714) xfree86: dri: use window destructor hook 2025-05-22 17:34:45 +02:00
dri2 dri2: Protect against dri2ClientPrivate assertion failures 2025-02-19 11:25:01 +00:00
drivers (!1949) xfree86: modeset: call miCreateScreenResources() directly 2025-05-22 17:34:43 +02:00
exa exa.man: editorial changes for this man page 2025-03-29 12:25:00 -07:00
fbdevhw (!1952) xfree86: fbdevhw: drop unused FBDEVHW_PLANES 2025-05-22 17:34:43 +02:00
glamor_egl drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
i2c (!1992) xfree86: i2c: drop unused xf86I2CWriteWord() 2025-05-22 17:34:34 +02:00
int10 (!1969) xfree86: int10: extra NULL protection 2025-05-22 17:34:40 +02:00
loader (!1969) xfree86: loader: add assert() in LoadModule() 2025-05-22 17:34:40 +02:00
man man pages: use .BR to mark up man page references 2025-03-29 13:36:54 -07:00
modes (!1943) xfree86: unexport xf86RandR12CreateScreenResources() 2025-05-22 17:34:45 +02:00
os-support (!1991) xfree86: xf86Option: unexport xf86MarkOptionUsedByName() 2025-05-22 17:34:35 +02:00
parser (!1969) xfree86: parser: fix possible use-after-free xf86freeOutputClassList() 2025-05-22 17:34:41 +02:00
ramdac (!1985) randr: unexport and document RRHasScanoutPixmap() 2025-05-22 17:34:37 +02:00
shadowfb xfree86: xfbmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
utils (!1969) xfree86: utils: gracefully handle allocation failure. 2025-05-22 17:34:40 +02:00
vgahw (!1991) xfree86: xf86Option: unexport xf86MarkOptionUsedByName() 2025-05-22 17:34:35 +02:00
x86emu (!1969) xfree86: x86emu: add extra assert()'s 2025-05-22 17:34:40 +02:00
xkb dix: unexport non-public functions from dixgrabs.h and document prototypes 2024-10-10 13:50:57 +00:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
meson.build meson: Support building Xnest and Xorg on darwin 2022-06-26 09:16:42 +00:00
sdksyms.sh (!1955) Xext: geext: drop obsolete geext.h 2025-05-22 17:34:42 +02:00
xorg-wrapper.c Fix various spelling errors 2019-10-01 17:05:28 +00:00
xorgconf.cpp Fix spelling/wording issues 2020-07-05 13:07:33 -07:00