xserver/mi
Enrico Weigelt, metux IT consult b13b8dad07 (!1714) dix: add per-screen window position notify hook
Right now, extension specific actions on window positioning are 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
window positioning 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>
2024-10-31 19:23:51 +01:00
..
meson.build mi: drop obsolete mibitblt.c 2024-08-29 19:34:09 +02:00
mi.h mi: drop unused miPutImage() 2024-08-29 19:34:09 +02:00
mi_priv.h xnest: fix segfault in miCreateScreenResources() 2024-04-23 00:52:52 +00:00
miarc.c (!1711) mi: use dixDestroyPixmap() instead of direct driver call 2024-10-31 19:23:50 +01:00
micmap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
micmap.h mi: move *_VISUALS defines into consumer source file 2024-06-18 01:22:52 +00:00
micoord.h mi: Remove semi-arbitrary arch awareness in packed coordinate macros 2014-07-28 12:20:44 -07:00
micopy.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
midash.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
midispcur.c (!1711) mi: use dixDestroyPixmap() instead of direct driver call 2024-10-31 19:23:50 +01:00
mieq.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
miexpose.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mifillarc.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mifillarc.h mi: Unexport arc fill implementation details 2014-10-27 15:45:21 -04:00
mifpoly.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
migc.c (!1711) mi: use dixDestroyPixmap() instead of direct driver call 2024-10-31 19:23:50 +01:00
migc.h mi: Add include guards to migc.h 2017-02-16 15:10:32 -05:00
miglblt.c (!1711) mi: use dixDestroyPixmap() instead of direct driver call 2024-10-31 19:23:50 +01:00
miinitext.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
miinitext.h mi: List extensions in usage message 2021-01-29 12:52:09 +00:00
miline.h mi: drop unused SWAPPT() macro 2024-06-18 01:12:42 +00:00
mioverlay.c (!1714) dix: add per-screen window position notify hook 2024-10-31 19:23:51 +01:00
mioverlay.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mipointer.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipointer.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
mipointrst.h dix: Update some comments to reflect the new non-SIGIO input model 2016-06-08 11:36:32 -04:00
mipoly.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipoly.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
mipolypnt.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolyrect.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolyseg.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolytext.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipushpxl.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
miscanfill.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
miscrinit.c (!1714) mi: overlay: use window destructor hook 2024-10-31 19:23:51 +01:00
misprite.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
misprite.h mi: misprite.h: drop unnecessary extern on functions 2024-10-10 14:44:52 +00:00
mistruct.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
mivalidate.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mivaltree.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
miwideline.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
miwideline.h mi: Fold mispans.c into miwideline.c 2014-10-27 15:45:22 -04:00
miwindow.c (!1714) dix: add per-screen window position notify hook 2024-10-31 19:23:51 +01:00
mizerarc.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mizerarc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mizerclip.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mizerline.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00