[Xcb] missing xcb_setup_roots function ?

Vincent Torri vtorri at univ-evry.fr
Thu Nov 9 01:41:37 PST 2006



On Thu, 9 Nov 2006, Josh Triplett wrote:

> Vincent Torri wrote:
>> Hey,
>>
>> I'm just wondering why there is no xcb_setup_roots function. Indeed, there
>> are xcb_setup_roots_length and xcb_setup_roots_iterator functions, but no
>> function that points to the screens (at least, in my generated xproto.h)
>>
>> Is it normal ?
>
> Yes.  A screen does not have a fixed size due to the allowed_depths list, so
> you can't treat it like an array; you need to use an iterator.

Also, what does xcb_setup_roots_length return ? the number of  screens ? 
(like iter.rem if iter is the screen iterator) or is it a byte unity ?

Vincent


More information about the Xcb mailing list