1XQueryTree(3X11)                XLIB FUNCTIONS                XQueryTree(3X11)
2
3
4

NAME

6       XQueryTree - query window tree information
7

SYNTAX

9       Status XQueryTree(Display *display, Window w, Window *root_return, Win‐
10              dow *parent_return, Window **children_return, unsigned int
11              *nchildren_return);
12

ARGUMENTS

14       children_return
15                 Returns the list of children.
16
17       display   Specifies the connection to the X server.
18
19       nchildren_return
20                 Returns the number of children.
21
22       parent_return
23                 Returns the parent window.
24
25       root_return
26                 Returns the root window.
27
28
29       w         Specifies the window whose list of children, root, parent,
30                 and number of children you want to obtain.
31

DESCRIPTION

33       The XQueryTree function returns the root ID, the parent window ID, a
34       pointer to the list of children windows (NULL when there are no chil‐
35       dren), and the number of children in the list for the specified window.
36       The children are listed in current stacking order, from bottom-most
37       (first) to top-most (last).  XQueryTree returns zero if it fails and
38       nonzero if it succeeds.  To free a non-NULL children list when it is no
39       longer needed, use XFree.
40

BUGS

42       This really should return a screen *, not a root window ID.
43

SEE ALSO

45       XFree(3X11), XGetWindowAttributes(3X11), XQueryPointer(3X11)
46       Xlib - C Language X Interface
47
48
49
50X Version 11                     libX11 1.0.3                 XQueryTree(3X11)
Impressum