xserver-multidpi/miext/shadow
Keith Packard fb1edccf3c dix: Call screen block/wakeup handlers closest to blocking [v3]
The screen block and wakeup handlers are the only ones which provide a
well known ordering between the wrapping layers; placing these as
close as possible to the server blocking provides a way for the driver
to control the flow of execution correctly.

Switch the shadow code to run in the screen block handler so that it
now occurrs just before the server goes to sleep.

Switch glamor to call down to the driver after it has executed its own
block handler piece, in case the driver needs to perform additional
flushing work after glamor has called glFlush.

These changes ensure that the following modules update the screen in
the correct order:

animated cursors        (uses RegisterBlockAndWakeupHandlers dynamically)
composite               (dynamic wrapping)
misprite                (dynamic wrapping)
shadow                  (static wrapping)
glamor                  (static wrapping)
driver                  (static wrapping)

It looks like there's still a bit of confusion between composite and
misprite; if composite updates after misprite, then it's possible
you'd exit the block handler chain with the cursor left hidden. To fix
that, misprite should be wrapping during ScreenInit time and not
unwrapping. And composite might as well join in that fun, just to make
things consistent.

[v2] Unwrap BlockHandler in shadowCloseScreen (ajax)
[v3] ephyr: Use screen block handler for flushing changes

ephyr needs to make sure it calls glXSwapBuffers after glamor finishes
its rendering. As the screen block handler is now called last, we have
to use that instead of a registered block/wakeup handler to make sure
the GL rendering is done before we copy it to the front buffer.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-06-20 11:54:57 -07:00
..
c2p_core.h Shadow: Switch the Amiga/Atari bitplane code to the canonical X.Org license 2013-05-14 14:41:00 -07:00
Makefile.am miext/shadow: missing c2p_core.h breaks "make distcheck" target. 2013-10-04 13:56:01 -07:00
shadow.c dix: Call screen block/wakeup handlers closest to blocking [v3] 2016-06-20 11:54:57 -07:00
shadow.h dix: Call screen block/wakeup handlers closest to blocking [v3] 2016-06-20 11:54:57 -07:00
shafb4.c Shadow: Switch the Amiga/Atari bitplane code to the canonical X.Org license 2013-05-14 14:41:00 -07:00
shafb8.c Shadow: Switch the Amiga/Atari bitplane code to the canonical X.Org license 2013-05-14 14:41:00 -07:00
shalloc.c Convert mi & miext to new *allocarray functions 2015-04-21 16:58:08 -07:00
shiplan2p4.c Shadow: Switch the Amiga/Atari bitplane code to the canonical X.Org license 2013-05-14 14:41:00 -07:00
shiplan2p8.c Shadow: Switch the Amiga/Atari bitplane code to the canonical X.Org license 2013-05-14 14:41:00 -07:00
shpacked.c miext/shadow/shpacked.c: Remove unused PickBit() define 2013-04-18 13:10:25 +02:00
shplanar.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shplanar8.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shrot8pack_90.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot8pack_180.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot8pack_270.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot8pack.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot16pack_90.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot16pack_90YX.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot16pack_180.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot16pack_270.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot16pack_270YX.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot16pack.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot32pack_90.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot32pack_180.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot32pack_270.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrot32pack.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
shrotate.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
shrotpack.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shrotpackYX.h miext: Remove redundant declaration. 2012-05-14 13:17:04 +01:00