[Xcb] question about the QueryTree

Jamey Sharp jamey at minilop.net
Mon Apr 11 03:11:58 EST 2005


On Sun, Apr 10, 2005 at 06:06:58PM +0200, Vincent Torri wrote:
> Hello,

Hi Vincent!

> i would like to parse the list of all the children of a window. For that,
> I use XCBQueryTreeChildrenIter. But i would like to know in which order
> the children appear when i iterate over them (from bottommost to topmost,
> or the reverse order).

The protocol specification says, "The children are listed in
bottom-to-top stacking order."

> In case it's not the good sort, I have the same question for
> XCBQueryTreeChildren. Also, which function should I use to free the
> windows returned by this function ?

All of the functions that return iterators or arrays from replies are
just returning pointers into the reply, which is allocated as one big
block. You can only free the reply as a whole.

--Jamey


More information about the xcb mailing list