XMoveWindow()XMoveWindow()NameXMoveWindow – move a window.
Synopsis
XMoveWindow(display, w, x, y)
Display *display;
Window w;
int x, y;
Arguments
display Specifies a connection to an X server; returned from XOpenDis‐
play().
w Specifies the ID of the window to be moved.
x Specify the new x and y coordinates of the upper-left pixel of
y the window's border (or of the window itself, if it has no
border), relative to the window's parent.
DescriptionXMoveWindow() changes the position of the origin of the specified win‐
dow relative to its parent. XMoveWindow() does not change the mapping
state, size, or stacking order of the window, nor does it raise the
window. Moving a mapped window will lose its contents if:
· Its background_pixmap attribute is ParentRelative.
· The window is obscured by nonchildren and no backing store exists.
If the contents are lost, exposure events will be generated for the
window and any mapped subwindows. Moving a mapped window will generate
exposure events on any formerly obscured windows.
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 takes place, and the
event will contain the final position of the window. This is only use‐
ful in the case of top-level windows, since the window manager may mod‐
ify or disallow moves.
Errors
BadWindow
See AlsoXCirculateSubwindows(), XCirculateSubwindowsDown(), XCirculateSubwin‐
dowsUp(), XConfigureWindow(), XLowerWindow(), XMoveResizeWindow(),
XQueryTree(), XRaiseWindow(), XReparentWindow(), XResizeWindow(),
XRestackWindows().
Xlib - Window Manipulation XMoveWindow()