XMoveWindow
Syntax
XMoveWindow(display, w, x, y)
Display *display;
Window w;
int x, y;
Arguments
display
| Specifies the connection to the X server.
|
w
| Specifies the window to be moved
|
x y
| Specify the x and y coordinates, which define the new location of the top-left pixel
of the window's border or the window itself if it has no border.
|
Description
The
XMoveWindow()
function moves the specified window to the specified x and y coordinates,
but it does not change the window's size, raise the window, or
change the mapping state of the window.
Moving a mapped window may or may not lose the window's contents
depending on if the window is obscured by nonchildren
and if no backing store exists.
If the contents of the window are lost,
the X server generates
Expose
events.
Moving a mapped window generates
Expose
events on any formerly obscured windows.
If the override-redirect flag of the window is
False
and some
other client has selected
SubstructureRedirectMask
on the parent, the X server generates a
ConfigureRequest
event, and no further processing is
performed.
Otherwise, the window is moved.
XMoveWindow()
can generate a
BadWindow
error.
Diagnostics
BadWindow
| A value for a Window argument does not name a defined Window.
|
See also
XChangeWindowAttributes(),
XConfigureWindow(),
XCreateWindow(),
XDestroyWindow(),
XMapWindow(),
XMoveResizeWindow(),
XRaiseWindow(),
XResizeWindow(),
XSetWindowBorderWidth(),
XUnmapWindow(),
"Configuring Windows"
Christophe Tronche, ch@tronche.com