[Xcb] XPending()

Russell Shaw rjshaw at netspace.net.au
Tue May 19 21:22:18 PDT 2009

Peter Harris wrote:
> Russell Shaw wrote:
>> Hi,
>> What's the XCB replacement for XPending() ?
>> I can't use select() on the XCB file descriptor after XCB
>> has already read data out of it and is holding it inside
>> its input buffer.
> There isn't a direct replacement.
> xcb_poll_for_event() is the replacement for
> if (XPending()) { XNextEvent(); }
> Hopefully that helps.
> Peter Harris

Hi Peter.H,
Thanks for the reminder. I wrongly assumed xcb_poll_for_event() only
checked the file descriptor.


regards, Russell

More information about the Xcb mailing list