Status XQueryTree(display, w, root_return, parent_return, children_return, nchildren_return)
Display *display;
Window w;
Window *root_return;
Window *parent_return;
Window **children_return;
unsigned int *nchildren_return;
display | Specifies the connection to the X server. |
w | Specifies the window whose list of children, root, parent, and number of children you want to obtain. |
root_return | Returns the root window. |
parent_return | Returns the parent window. |
children_return | Returns the list of children. |
nchildren_return | Returns the number of children. |
XQueryTree() can generate a BadWindow error.
BadWindow | A value for a Window argument does not name a defined Window. |