[Xcb] XPending()

Peter Harris pharris at opentext.com
Tue May 19 08:34:59 PDT 2009


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
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://www.opentext.com/connectivity
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866


More information about the Xcb mailing list