Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xreparentwindow(3) [centos man page]

XReparentWindow(3)						  XLIB FUNCTIONS						XReparentWindow(3)

NAME
XReparentWindow - reparent windows SYNTAX
int XReparentWindow(Display *display, Window w, Window parent, int x, int y); ARGUMENTS
display Specifies the connection to the X server. parent Specifies the parent window. w Specifies the window. x y Specify the x and y coordinatesof 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: o The new parent window is not on the same screen as the old parent window. o The new parent window is the specified window or an inferior of the specified window. o The new parent is InputOnly, and the window is not. o 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
BadWindow A value for a Window argument does not name a defined Window. SEE ALSO
XChangeSaveSet(3) Xlib - C Language X Interface X Version 11 libX11 1.6.0 XReparentWindow(3)

Check Out this Related Man Page

XReparentWindow()														 XReparentWindow()

Name
  XReparentWindow - insert a window between another window and its parent.

Synopsis
  XReparentWindow(display, win, parent, x, y)
	Display *display;
	Window win;
	Window parent;
	int x, y;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  win	    Specifies the ID of the window to be reparented.

  parent    Specifies the window ID of the new parent window.

  x	    Specify the coordinates of the window relative to the new parent.

  y

Description
  XReparentWindow() modifies the window hierarchy by placing window win as a child of window parent.  This function is usually used by a win-
  dow manager to put a decoration window behind each application window.  In the case of the window manager, the new parent window must first
  be created as a child of the root window.

  If win is mapped, an XUnmapWindow() request is performed on it automatically.  win is then removed from its current position in the hierar-
  chy, and is inserted as a child of the specified parent.  win is placed on top in the stacking order with respect to siblings.

  A ReparentNotify event is then generated.  The override_redirect member of the structure returned by this event is set to  either  True  or
  False.  Window manager clients normally should ignore this event if this member is set to True.

  Finally, if the window was originally mapped, an XMapWindow() request is performed automatically.

  Descendants of win remain descendants of win; they are not reparented to the old parent of win.

  Normal  exposure  processing on formerly obscured windows is performed.  The server might not generate exposure events for regions from the
  initial unmap that are immediately obscured by the final map.  The request fails if the new parent is not on the same  screen  as  the  old
  parent, or if the new parent is the window itself or an inferior of the window.

Errors
  BadMatch  parent not on same screen as old parent of win.
	    win has a ParentRelative background and parent is not the same depth as win.
	    parent is win or an inferior of win.

  BadWindow parent is InputOnly and win is not.

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

Xlib - Window Manipulation													 XReparentWindow()
Man Page