[Xcb] a reply freeze

Jamey Sharp jamey at minilop.net
Wed Jun 15 09:13:13 PDT 2005


On Wed, 2005-06-15 at 11:05 +0200, Vincent Torri wrote:
> >
> > Why do you want that? Can't you just wait to find out whether an event
> > is available until you're actually ready to process that event?
> 
> Ecore needs that. As ecore is almost all the Xlib stuff... Ecore X is
> buffering all the events. They are then registered and executed in the
> ecore main loop.

That seems like a fine plan. So why can't you write a loop like this
somewhere in ecore? (Assuming you put things into ecore's buffer with a
function named "enqueue".)

        XCBGenericEvent *evt;
        while((evt = XCBPollForEvent(evt, 0)))
                enqueue(evt);

--Jamey



More information about the xcb mailing list