5.7 Subwindow Mode
The subwindow_mode member of
XGCValues controls whether subwindows obscure their
parent for purposes of drawing on the parent. This member is set with
XSetSubwindowMode().
The value ClipByChildren sets the default
condition, in which drawing into the area of a window obscured by its
visible children produces no effect.
If the subwindow_mode is set to
IncludeInferiors, drawing appears through visible
children even when they have opaque backgrounds. The use of
IncludeInferiors on a window of depth 1 with mapped
inferiors of differing depth is not illegal, but the results are not
defined in standard Xlib.
One familiar use of IncludeInferiors is the
window manager’s “rubber banding” of window outlines while they are
being moved or resized. The outline is drawn on the root window with the
GC set to IncludeInferiors.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access