NAME
XMoveResizeWindow − change the size and position of a window.
Synopsis
XMoveResizeWindow(display, w, x, y, width, height)
Display *display;
Window w;
int x, y;
unsigned int width, height;
Arguments
displaySpecifies a connection to an X server; returned from XOpenDisplay().
wSpecifies the ID of the window to be reconfigured.
x
ySpecify the new x and y coordinates of the upper-left pixel of the window’s border, relative to the window’s parent.
width
heightSpecify the new width and height in pixels. These arguments define the interior size of the window.
Description
XMoveResizeWindow() moves or resizes a window or both. XMoveResizeWindow() does not raise the window. Resizing a mapped window may lose its contents and generate an Expose event on that window depending on the bit_gravity attribute. Configuring a window may generate exposure events on windows that the window formerly obscured, depending on the new size and location parameters. If the override_redirect attribute of the window is False (see Volume One, Chapter 4, Window Attributes) and the window manager has selected SubstructureRedirectMask on the parent, then a ConfigureRequest event is sent to the window manager, and no further processing is performed. If a client has selected StructureNotifyMask on the window, then a ConfigureNotify event is generated after the move and resize takes place, and the event will contain the final position and size of the window. This is only useful in the case of top-level windows, since the window manager may modify or prevent them being moved or resized.
Errors
BadValue
BadWindow
See Also
XCirculateSubwindows(), XCirculateSubwindowsDown(), XCirculateSubwindowsUp(), XConfigureWindow(), XLowerWindow(), XMoveWindow(), XQueryTree(), XRaiseWindow(), XReparentWindow(), XResizeWindow(), XRestackWindows().
Copyright O’Reilly & Assoc. —