16.6 Window Management Functions

The functions described in this section are used primarily by the window manager on top-level windows. Applications can also use them on their top-level windows; conventions for doing so are described in Appendix L, Interclient Communication Conventions, of Volume Zero, X Protocol Reference Manual (as of the second printing). Applications can use these routines freely on their subwindows.

XConfigureWindow() is the most general routine for changing the configuration of a window, namely its size, position, border width, and stacking position.

The routines to move and resize windows are XMoveWindow(), XMoveResizeWindow(), and XResizeWindow(). The routine to change the border width of a window is XSetWindowBorderWidth().

Quite a variety of routines are provided to change the stacking order of windows. These operations affect only a single group of siblings. Furthermore, they affect only overlapping siblings. If any of the siblings specified do not overlap, their stacking order is not changed.

XCirculateSubwindowsDown()

Moves the lowest mapped sibling to the top of the stacking order.

XCirculateSubwindowsUp()

Moves the highest mapped sibling to the bottom of the stacking order.

XCirculateSubwindows()

Performs either XCirculateSubwindowsDown() or XCirculateSubwindowsUp() according to a flag.

XRestackWindows()

Specifies a list of siblings in the desired stacking order.

XRaiseWindow()

Moves a window to the top of the stacking order among its siblings.

XMapRaised()

Maps ...

Get XLIB Programming Manual, Rel. 5, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.