xserver/hw/xnest
Enrico Weigelt, metux IT consult d6e8e7f70f (!1654) 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-02-13 14:09:46 +01:00
..
man Replace "the the" with a single "the" in docs & comments 2022-03-31 13:27:57 -07:00
.gitignore Xnest: build Xnest man pages using XORG_MANPAGE_SECTIONS 2011-01-18 15:10:17 -08:00
Args.c (!1654) Xnest: replace XParseGeometry() by own implementation 2025-02-13 14:09:46 +01:00
Args.h (!1654) Xnest: collect upstream window geometry in one xRectangle struct 2025-02-13 14:09:46 +01:00
Color.c (!1654) Xnest: replace X(Un)InstallColormap() by xcb_(un)install_colormap() 2025-02-13 14:09:46 +01:00
Color.h Xnest: cleanup X.h includes 2024-04-15 19:20:39 +00:00
Cursor.c (!1654) Xnest: use new lookup table for visuals and cmaps mappings 2025-02-13 14:09:46 +01:00
Display.c (!1654) Xnest: drop obsolete XGetVisualInfo() call and reundant colormaps 2025-02-13 14:09:46 +01:00
Display.h (!1654) Xnest: drop obsolete XGetVisualInfo() call and reundant colormaps 2025-02-13 14:09:46 +01:00
Drawable.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Events.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Events.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Font.c (!1654) Xnest: drop using XLoadQueryFont() 2025-02-13 14:09:46 +01:00
GC.c (!1654) Xnest: load fonts via xcb 2025-02-13 14:09:46 +01:00
GCOps.c (!1654) Xnest: replace XTextWidth[16]() by own implementation 2025-02-13 14:09:46 +01:00
GCOps.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Handlers.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Handlers.h Remove fd_set from Block/Wakeup handler API 2016-07-18 15:27:51 -04:00
Init.c (!1654) Xnest: replace XConnectionNumber() by xcb_get_file_descriptor() 2025-02-13 14:09:46 +01:00
Init.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
Keyboard.c (!1654) Xnest: replace XGetKeyboardControl() by xcb_get_keyboard_control() 2025-02-13 14:09:46 +01:00
Keyboard.h (!1654) Xnest: use XCB_EVENT_MASK_* defines 2025-02-13 14:09:45 +01:00
Pixmap.c (!1654) Xnest: Pixmap: replace XGetImage() by xcb_get_image() 2025-02-13 14:09:46 +01:00
Pointer.c (!1654) Xnest: replace XGetPointerMapping() by xcb_get_pointer_mapping() 2025-02-13 14:09:46 +01:00
Pointer.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Screen.c (!1654) Xnest: drop xnestWindowExposures micro-optimization 2025-02-13 14:09:46 +01:00
Screen.h Xnest: cleanup X.h includes 2024-04-15 19:20:39 +00:00
Window.c (!1654) Xnest: drop xnestWindowExposures micro-optimization 2025-02-13 14:09:46 +01:00
XNCursor.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
XNFont.h (!1654) Xnest: replace XTextWidth[16]() by own implementation 2025-02-13 14:09:46 +01:00
XNGC.h (!1654) Xnest: use XIDs directly, instead of Xlib's GC 2025-02-13 14:09:45 +01:00
XNPixmap.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
XNWindow.h (!1654) Xnest: drop xnestWindowExposures micro-optimization 2025-02-13 14:09:46 +01:00
Xnest.h (!1654) Xnest: use xcb instead of XShapeCombineRegion() and XShapeCombineMask() 2025-02-13 14:09:45 +01:00
icon R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
meson.build (!1654) Xnest: use new lookup table for visuals and cmaps mappings 2025-02-13 14:09:46 +01:00
screensaver R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
xcb.c (!1654) Xnest: replace XTextWidth[16]() by own implementation 2025-02-13 14:09:46 +01:00
xkb.c (!1654) Xnest: add own copy of fixed xcb_xkb_get_kbd_by_name() 2025-02-13 14:09:46 +01:00
xnest-xcb.h (!1654) Xnest: drop using XLoadQueryFont() 2025-02-13 14:09:46 +01:00
xnest-xkb.h (!1654) Xnest: add own copy of fixed xcb_xkb_get_kbd_by_name() 2025-02-13 14:09:46 +01:00