NAME

XQueryTree - query window tree information

SYNTAX

Status XQueryTree(Display *_d_i_s_p_l_a_y, Window _w, Window *_r_o_o_t___r_e_t_u_r_n, Window *_p_a_r_e_n_t___r_e_t_u_r_n, Window **_c_h_i_l_d_r_e_n___r_e_t_u_r_n, unsigned int *_n_c_h_i_l_d_r_e_n___r_e_t_u_r_n);

ARGUMENTS

_c_h_i_l_d_r_e_n___r_e_t_u_r_n Returns the list of children.
_d_i_s_p_l_a_y Specifies the connection to the X server.
_n_c_h_i_l_d_r_e_n___r_e_t_u_r_n Returns the number of children.
_p_a_r_e_n_t___r_e_t_u_r_n Returns the parent window.
_r_o_o_t___r_e_t_u_r_n Returns the root window.
you want to obtain
_w Specifies the window whose list of children, root, parent, and number of children.

DESCRIPTION

The _X_Q_u_e_r_y_T_r_e_e function returns the root ID, the parent window ID, a pointer to the list of children windows (NULL when there are no children), and the number of children in the list for the specified window. The children are listed in current stacking order, from bottom-most (first) to top-most (last). _X_Q_u_e_r_y_T_r_e_e returns zero if it fails and nonzero if it succeeds. To free a non-NULL children list when it is no longer needed, use _X_F_r_e_e.

BUGS

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

SEE ALSO

XFree(3X11), XGetWindowAttributes(3X11), XQueryPointer(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e