1XQueryTree(3)                   XLIB FUNCTIONS                   XQueryTree(3)
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
41       XQueryTree can generate a BadWindow error.
42

BUGS

44       This really should return a screen *, not a root window ID.
45

DIAGNOSTICS

47       BadWindow A value for a Window argument does not name a defined Window.
48

SEE ALSO

50       XFree(3), XGetWindowAttributes(3), XQueryPointer(3)
51       Xlib - C Language X Interface
52
53
54
55X Version 11                     libX11 1.3.4                    XQueryTree(3)
Impressum