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       w         Specifies  the  window  whose list of children, root, parent,
29                 and number of children you want to obtain.
30

DESCRIPTION

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

BUGS

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

DIAGNOSTICS

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

SEE ALSO

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