XReparentWindow(3) | Library Functions Manual | XReparentWindow(3) |
int XReparentWindow(Display *display, Window w, Window parent, int x, int y);
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:
XReparentWindow can generate BadMatch and BadWindow errors.
X Version 11 | XLIB FUNCTIONS |