MirBSD manpage: XReparentWindow(3)

XReparentWindow(3X11)    XLIB FUNCTIONS     XReparentWindow(3X11)


     XReparentWindow - reparent windows


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


     display   Specifies the connection to the X server.

     parent    Specifies the parent window.

     w         Specifies the window.

     y         Specify the x and y coordinatesof the position in
               the new parent window.


     If the specified window is mapped, XReparentWindow automati-
     cally performs an UnmapWindow request on it, removes it from
     its current position 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 member 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.

XFree86                   Version 4.5.0                         1

XReparentWindow(3X11)    XLIB FUNCTIONS     XReparentWindow(3X11)

     XReparentWindow can generate BadMatch and BadWindow errors.


     BadWindow A value for a Window argument does not name a
               defined Window.


     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.