Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xreparentwindow(3x11) [osf1 man page]

XReparentWindow(3X11)													     XReparentWindow(3X11)

NAME
XReparentWindow - reparent windows SYNOPSIS
XReparentWindow(display, w, parent, x, y) Display *display; Window w; Window parent; int x, y; ARGUMENTS
Specifies the connection to the X server. Specifies the parent window. Specifies the window. Specify the x and y coordinates of the position in the new parent window. DESCRIPTION
If the specified window is mapped, XReparentWindow automatically performs an UnmapWindow request on it, removes it from its current posi- tion in the hierarchy, and inserts it as the child of the specified parent. The window is placed in the stacking order on top with respect to sibling windows. After reparenting the specified window, XReparentWindow causes the X server to generate a ReparentNotify event. The override_redirect mem- ber returned in this event is set to the window's corresponding attribute. Window manager clients usually should ignore this window if this member is set to True. Finally, if the specified window was originally mapped, the X server automatically performs a MapWindow request on it. The X server performs normal exposure processing on formerly obscured windows. The X server might not generate Expose events for regions from the initial UnmapWindow request that are immediately obscured by the final MapWindow request. A BadMatch error results if: The new parent window is not on the same screen as the old parent window. The new parent window is the specified window or an inferior of the specified window. The new parent is InputOnly, and the window is not. The specified window has a ParentRelative background, and the new parent window is not the same depth as the specified window. XReparentWindow can generate BadMatch and BadWindow errors. DIAGNOSTICS
A value for a Window argument does not name a defined Window. SEE ALSO
XChangeSaveSet(3X11) Xlib -- C Language X Interface XReparentWindow(3X11)

Check Out this Related Man Page

XMoveWindow()															     XMoveWindow()

Name
  XMoveWindow - 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 XOpenDisplay().

  w	   Specifies the ID of the window to be moved.

  x	   Specify the new x and y coordinates of the upper-left pixel of the window's border (or of the window itself, if it has no border),
  y	   relative to the window's parent.

Description
  XMoveWindow() changes the position of the origin of the specified window 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:

  o  Its background_pixmap attribute is ParentRelative.

  o  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 ConfigureNotify event is generated after the move takes place,  and  the
  event  will  contain	the final position of the window.  This is only useful in the case of top-level windows, since the window manager may
  modify or disallow moves.

Errors
  BadWindow

See Also
  XCirculateSubwindows(),  XCirculateSubwindowsDown(),	XCirculateSubwindowsUp(),  XConfigureWindow(),	XLowerWindow(),  XMoveResizeWindow(),
  XQueryTree(), XRaiseWindow(), XReparentWindow(), XResizeWindow(), XRestackWindows().

Xlib - Window Manipulation													     XMoveWindow()
Man Page