XMoveResizeWindow()XMoveResizeWindow()NameXMoveResizeWindow – 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
display Specifies a connection to an X server; returned from XOpenDis‐
play().
w Specifies the ID of the window to be reconfigured.
x Specify the new x and y coordinates of the upper-left pixel of
y the window's border, relative to the window's parent.
width Specify the new width and height in pixels. These arguments
height define the interior size of the window.
DescriptionXMoveResizeWindow() moves or resizes a window or both. XMoveResizeWin‐
dow() 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 Con‐
figureNotify 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 AlsoXCirculateSubwindows(), XCirculateSubwindowsDown(), XCirculateSubwin‐
dowsUp(), XConfigureWindow(), XLowerWindow(), XMoveWindow(), XQuery‐
Tree(), XRaiseWindow(), XReparentWindow(), XResizeWindow(), XRestack‐
Windows().
Xlib - Window Manipulation XMoveResizeWindow()