XRestackWindows()XRestackWindows()NameXRestackWindows – change the stacking order of siblings.
Synopsis
XRestackWindows(display, windows, nwindows);
Display *display;
Window windows[];
int nwindows;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
windows Specifies an array containing the windows to be restacked.
All the windows must have a common parent.
nwindows Specifies the number of windows in the windows array.
DescriptionXRestackWindows() restacks the windows in the order specified, from top
to bottom. The stacking order of the first window in the windows array
will be on top, and the other windows will be stacked underneath it in
the order of the array. Note that you can exclude other siblings from
the windows array so that the top window in the array will not move
relative to these other siblings.
For each window in the window array that is not a child of the speci‐
fied window, a BadMatch error will be generated. If the override_redi‐
rect attribute of the window is False and the window manager has
selected SubstructureRedirectMask on the parent, then ConfigureRequest
events are sent to the window manager for each window whose over‐
ride_redirect is not set, and no further processing is performed. Oth‐
erwise, the windows will be restacked in top to bottom order.
Errors
BadMatch
BadWindow
See AlsoXCirculateSubwindows(), XCirculateSubwindowsDown(), XCirculateSubwin‐
dowsUp(), XConfigureWindow(), XLowerWindow(), XMoveResizeWindow(),
XMoveWindow(), XQueryTree(), XRaiseWindow(), XReparentWindow(), XRe‐
sizeWindow().
Xlib - Window Manipulation XRestackWindows()