1xcb_reparent_window(3)           XCB Requests           xcb_reparent_window(3)
2
3
4

NAME

6       xcb_reparent_window - Reparents a window
7

SYNOPSIS

9       #include <xcb/xproto.h>
10
11   Request function
12       xcb_void_cookie_t xcb_reparent_window(xcb_connection_t *conn,
13              xcb_window_t window, xcb_window_t parent, int16_t x, int16_t y);
14

REQUEST ARGUMENTS

16       conn      The XCB connection to X11.
17
18       window    The window to reparent.
19
20       parent    The new parent of the window.
21
22       x         The X position of the window within its new parent.
23
24       y         The Y position of the window within its new parent.
25

DESCRIPTION

27       Makes the specified window a child of the specified parent window. If
28       the window is mapped, it will automatically be unmapped before repar‐
29       enting and re-mapped after reparenting. The window is placed in the
30       stacking order on top with respect to sibling windows.
31
32       After reparenting, a ReparentNotify event is generated.
33

RETURN VALUE

35       Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the
36       event loop.
37
38       If you want to handle errors directly with xcb_request_check instead,
39       use xcb_reparent_window_checked. See xcb-requests(3) for details.
40

ERRORS

42       xcb_match_error_t
43                 The new parent window is not on the same screen as the old
44                 parent window.
45
46                 The new parent window is the specified window or an inferior
47                 of 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
52                 new parent window is not the same depth as the specified win‐
53                 dow.
54
55       xcb_window_error_t
56                 The specified window does not exist.
57

SEE ALSO

59       xcb-requests(3), xcb_map_window(3), xcb_reparent_notify_event_t(3),
60       xcb_unmap_window(3)
61

AUTHOR

63       Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
64       rections and improvements.
65
66
67
68X Version 11                      libxcb 1.12           xcb_reparent_window(3)
Impressum