[Xcb] question about the QueryTree

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Mon Apr 11 04:48:10 EST 2005



On Sun, 10 Apr 2005, Jamey Sharp wrote:

> 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."

Ok, so, it's not the order that I want.

> > 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.

Ok, that's exactly what I want. Thank you :)

Vincent


More information about the xcb mailing list