xserver/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult b0f94e1c5c dix: add CreateScreenResources callback mechanism
Right now, extensions that need to be called after the CreateScreenResources
proc had been run, must wrap the screen proc vector directly (all of them
forming kind of daisy chain), and so - when called - temporarily restore the
previous one, call it, wrap again, and if the call was successful finally
doing it's own stuff. (same is done for many 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.

Instead introducing a simple approach for letting extension hook into a
post-CreateScreenResources callback list safely, w/o having to care much
about side effects with the call chain. Extensions now can simply register
their business logic and get called back - w/o ever having to mess with the
ScreenRec's internal structures.

Note that these hooks are executed *AFTER* the original CreateScreenResources()
proc had been called SUCCESSFULLY (returned TRUE), so callees can rely on
the DDX/driver had already done it's job.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 16:46:47 +02:00
..
.gitignore
callback.h
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: drop unused SetVendorRelease() 2025-06-12 16:20:19 +02:00
dixaccess.h
dixfont.h
dixfontstr.h
dixstruct.h os: split off internal definitions from client.h 2024-10-10 13:45:29 +00:00
events.h
eventstr.h
exevents.h XI: unexport XIPropToInt() and XIPropToFloat() 2025-06-12 16:25:48 +02:00
extension.h
extinit.h include: unexport no*Extension flags 2025-02-07 12:00:58 +01:00
extinit_priv.h Xext: drop disable flag for GE extension 2025-02-26 13:34:19 +00:00
extnsionst.h
fourcc.h
gc.h
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 dix: unexport defines for device grab states 2025-02-26 13:24:41 +00:00
inpututils.h
list.h
meson.build include: don't install propertyst.h 2025-06-12 16:31:02 +02:00
misc.h sdk: add generic X return code 2025-06-12 16:16:42 +02:00
miscstruct.h
nonsdk_extinit.h
opaque.h
optionstr.h
os.h include: os: add returns_nonnull attribute to XNFalloc/XNFcallocarray 2025-06-12 16:20:41 +02: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
region.h
regionstr.h include: regionstr.h: protect RegionUninit() from free()ing on .data 2025-06-12 16:34:24 +02:00
resource.h
rgb.h
screenint.h Revert "dix: unexport AttachOutputGPU() and DetachOutputGPU()" 2024-09-01 20:38:01 +00:00
scrnintstr.h dix: add CreateScreenResources callback mechanism 2025-06-12 16:46:47 +02:00
selection.h
servermd.h
swaprep.h
swapreq.h dix: unexport events related request handlers 2025-06-12 16:16:45 +02:00
systemd-logind.h
validate.h
vidmodestr.h
window.h
windowstr.h dix: move props into WindowRec and fix potential NULL deref 2025-06-12 16:34:03 +02:00
xkb-config.h.in
xkbrules.h xkb: unexport XkbRF_RuleRec struct 2025-02-26 13:43:52 +00:00
xkbsrv.h include: drop now empty xkbfile.h 2025-02-06 22:45:25 +00:00
xkbstr.h
xorg-config.h.meson.in
xorg-server.h.meson.in dix: add per-screen pixmap destructor mechanism 2025-06-12 16:46:30 +02:00
Xprintf.h
xserver-properties.h
Xserver.d
xwayland-config.h.meson.in
xwin-config.h.meson.in