[Xcb] Qlength like in xcb

Vincent Torri vtorri at univ-evry.fr
Sat Jan 2 07:36:16 PST 2010



On Sat, 2 Jan 2010, Michele Comignano wrote:

> Hi,
> i'm coding a simple compositing manager and i really miss something like the
> Xlib QLength. This macro returns the length of the event queue. It is really
> useful in a compositing manager to collect damaged areas and redraw them only
> at the end.

Arnaud Fontaine has already written an XCB based CM with a very good 
documentation.

Wait for his answer to have detailed comments

Vincent

> I cannot find a way to implement it through xcb, since the intersted
> structures are opaque.
> Maybe I miss something, but a solution could be a xcb_poll_event like function
> than returns XCB_NONE in case of empty queue.
>
> With regards :)
>
> -- 
> Michele Comignano (comick)
> Jabber: comick at autistici.org
> Web: http://comick.playlinux.net
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
>
>


More information about the Xcb mailing list