1XReparentWindow(3) XLIB FUNCTIONS XReparentWindow(3)
2
3
4
6 XReparentWindow - reparent windows
7
9 int XReparentWindow(Display *display, Window w, Window parent, int x,
10 int y);
11
13 display Specifies the connection to the X server.
14
15 parent Specifies the parent window.
16
17 w Specifies the window.
18
19 x
20 y Specify the x and y coordinatesof the position in the new
21 parent window.
22
24 If the specified window is mapped, XReparentWindow automatically per‐
25 forms an UnmapWindow request on it, removes it from its current posi‐
26 tion in the hierarchy, and inserts it as the child of the specified
27 parent. The window is placed in the stacking order on top with respect
28 to sibling windows.
29
30 After reparenting the specified window, XReparentWindow causes the X
31 server to generate a ReparentNotify event. The override_redirect mem‐
32 ber returned in this event is set to the window's corresponding
33 attribute. Window manager clients usually should ignore this window if
34 this member is set to True. Finally, if the specified window was orig‐
35 inally mapped, the X server automatically performs a MapWindow request
36 on it.
37
38 The X server performs normal exposure processing on formerly obscured
39 windows. The X server might not generate Expose events for regions
40 from the initial UnmapWindow request that are immediately obscured by
41 the final MapWindow request. A BadMatch error results if:
42
43 · The new parent window is not on the same screen as the old parent
44 window.
45
46 · The new parent window is the specified window or an inferior of
47 the specified window.
48
49 · The new parent is InputOnly, and the window is not.
50
51 · The specified window has a ParentRelative background, and the new
52 parent window is not the same depth as the specified window.
53
54 XReparentWindow can generate BadMatch and BadWindow errors.
55
57 BadWindow A value for a Window argument does not name a defined Window.
58
60 XChangeSaveSet(3)
61 Xlib - C Language X Interface
62
63
64
65X Version 11 libX11 1.6.4 XReparentWindow(3)