NAME
XResizeWindow — change a window’s size.
SYNOPSIS
XResizeWindow(display, w, width, height) Display ∗display; Window w; unsigned int width, height;
ARGUMENTS
displaySpecifies a connection to an X server; returned from XOpenDisplay().
wSpecifies the ID of the window to be resized.
widthSpecify the new dimensions of the window in pixels.
height
DESCRIPTION
XResizeWindow() changes the inside dimensions of the window. The border is resized to match but its border width is not changed. XResizeWindow() does not raise the window, or change its origin. Changing the size of a mapped window may lose its contents and generate an Expose event, depending on the bit_gravity attribute (see Volume One, Chapter 4, Window Attributes). If a mapped window is made smaller, exposure events will be generated on windows that it formerly obscured.
If the override_redirect attribute of the window is False 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 the client has selected StructureNotifyMask on the window, then a ConfigureNotify event is generated after the move takes place, and the event will contain the final size of the window.
ERRORS
BadValueEither width or height is zero.
BadWindow
SEE ALSO
XCirculateSubwindows(), XCirculateSubwindowsDown(), XCirculateSubwindowsUp(), XConfigureWindow(), XLowerWindow(), XMoveResizeWindow(), XMoveWindow(), XQueryTree(), XRaiseWindow(), XReparentWindow(), XRestackWindows().
Xlib Reference Manual