1. NAME▲
XReparentWindow - reparent windows
2. SYNTAX ▲
int XReparentWindow(Display *display, Window w, Window parent, int x, int y);
3. ARGUMENTS ▲
display 1i Specifies the connection to the X server.
parent 1i Specifies the parent window.
w 1i Specifies the window.
x 1i
y 1i Specify the x and y coordinates\*(Xy.
4. DESCRIPTION ▲
If the specified window is mapped, .ZN XReparentWindow automatically performs an .ZN 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, .ZN XReparentWindow causes the X server to generate a .ZN 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 .ZN True . Finally, if the specified window was originally mapped, the X server automatically performs a .ZN MapWindow request on it.
The X server performs normal exposure processing on formerly obscured windows. The X server might not generate .ZN Expose events for regions from the initial .ZN UnmapWindow request that are immediately obscured by the final .ZN MapWindow request. A .ZN BadMatch error results if:
5 The new parent window is not on the same screen as the old parent window.
5 The new parent window is the specified window or an inferior of the specified window.
5 The new parent is .ZN InputOnly , and the window is not.
5 The specified window has a .ZN ParentRelative background, and the new parent window is not the same depth as the specified window.
.ZN XReparentWindow can generate .ZN BadMatch and .ZN BadWindow errors.
5. DIAGNOSTICS ▲
- .ZN BadWindow
A value for a Window argument does not name a defined Window.
6. SEE ALSO ▲
XChangeSaveSet(3)
\*(xL