XRaiseWindow(), XLowerWindow(), XCirculateSubwindows(), XCirculateSubwindowsUp(), XCirculateSubwindowsDown(), XRestackWindows() - change window stacking order
XRaiseWindow (Display *display, Window w)
XLowerWindow (Display *display, Window w)
XCirculateSubwindows (Display *display, Window w,
int direction)
XCirculateSubwindowsUp (Display *display, Window w)
XCirculateSubwindowsDown (Display *display, Window w)
XRestackWindows (Display *display, Window windows[],
int nwindows)
The XRaiseWindow(3) function raises the specified window to the top of the stack so that no sibling window obscures it. If the windows are regarded as overlapping sheets of paper stacked on a desk, then raising a window is analogous to moving the sheet to the top of the stack but leaving its x and y location on the desk constant. Raising a mapped window can generate Expose events for the window and any mapped subwindows that were formerly obscured.
If the override-redirect attribute of the window is False and some other client has selected SubstructureRedirectMask on the parent, the X server generates a ConfigureRequest event, and no processing is performed. Otherwise, the window is raised.
XRaiseWindow(3) can generate a BadWindow error.
The XLowerWindow(3) function lowers the specified window to the bottom of the stack so that it does not obscure any sibling windows. If the windows are regarded as overlapping sheets of paper stacked on a desk, then lowering a window is analogous to moving the sheet to the bottom of the stack but leaving its x and y location on the desk constant. Lowering a mapped window will generate Expose events on any windows it formerly obscured.
If the override-redirect attribute of the window is False and some other client has selected SubstructureRedirectMask on the parent, the X server generates a ConfigureRequest event, and no processing is performed. Otherwise, the window is lowered to the bottom of the stack.
XLowerWindow(3) can generate a BadWindow error.
The XCirculateSubwindows(3) function circulates children of the specified window in the specified direction. If you specify RaiseLowest, XCirculateSubwindows(3) raises the lowest mapped child (if any) that is occluded by another child to the top of the stack. If you specify LowerHighest, XCirculateSubwindows(3) lowers the highest mapped child (if any) that occludes another child to the bottom of the stack. Exposure processing is then performed on formerly obscured windows. If some other client has selected SubstructureRedirectMask on the window, the X server generates a CirculateRequest event, and no further processing is performed. If a child is actually restacked, the X server generates a CirculateNotify event.
XCirculateSubwindows(3) can generate BadValue and BadWindow errors.
The XCirculateSubwindowsUp(3) function raises the lowest mapped child of the specified window that is partially or completely occluded by another child. Completely unobscured children are not affected. This is a convenience function equivalent to XCirculateSubwindows(3) with RaiseLowest specified.
XCirculateSubwindowsUp(3) can generate a BadWindow error.
The XCirculateSubwindowsDown(3) function lowers the highest mapped child of the specified window that partially or completely occludes another child. Completely unobscured children are not affected. This is a convenience function equivalent to XCirculateSubwindows(3) with LowerHighest specified.
XCirculateSubwindowsDown(3) can generate a BadWindow error.
The XRestackWindows(3) function restacks the windows in the order specified, from top to bottom. The stacking order of the first window in the windows array is unaffected, but the other windows in the array are stacked underneath the first window, in the order of the array. The stacking order of the other windows is not affected. For each window in the window array that is not a child of the specified window, a BadMatch error results.
If the override-redirect attribute of a window is False and some other client has selected SubstructureRedirectMask on the parent, the X server generates ConfigureRequest events for each window whose override-redirect flag is not set, and no further processing is performed. Otherwise, the windows will be restacked in top to bottom order.
XRestackWindows(3) can generate BadWindow error.
Xlib