xserver/hw
Enrico Weigelt, metux IT consult 8c701832ea Xnest: drop xnestWindowExposures micro-optimization
xnestWindowExposures() is a micro-optimization for the specific case that
a newly created window receives exposure events (from our upstream server)
inside the region we're already exposing on our own (miWindowExposures()):
it peeks the Xlib event queue for all expose events, checks whether their
areas are inside our exposure region and requeue's those that aren't.

Unfortunately, this depends on Xlib's internal queue mechamism, thus standing
in the way of moving to XCB (which doesn't have that).

Removing this doens't seem to make any practical difference, even with
demanding applications like GIMP. The only cost is potentially having some
initial window content painted twice, *if* the application really draws
something complicated right after creating the window.

*If* there'll really be a demand for such an optimization some day, it can
be reimplemented without any message queue: just redirecting all expose events
into recording them in a region, which is flushed out later. But for now,
there really doesn't seem to be any practical need for that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 17:21:45 +02:00
..
kdrive kdrive: replace xallocarray() by calloc() 2025-06-12 17:21:44 +02:00
vfb xvfb: protect from memory allocation failure 2025-06-12 17:21:44 +02:00
xfree86 xfree86: common: use LogMessageVerb() instead of xf86Msg() 2025-06-12 17:21:45 +02:00
xnest Xnest: drop xnestWindowExposures micro-optimization 2025-06-12 17:21:45 +02:00
xquartz xquartz: drop unused includes of colormapst.h 2025-06-12 17:21:43 +02:00
xwayland xkb: unexport internal variables 2025-06-12 17:21:45 +02:00
xwin os: log: drop now meaningless XLOG_FLUSH option 2025-06-12 17:21:45 +02:00
meson.build meson.build: print a summary of the DDX to build 2025-03-24 03:05:35 +00:00