[Xcb] Re: XPending - XCBEventQueueLength sounds right but its gone. What else?

Travis Spencer travislspencer at gmail.com
Sun Jul 17 12:26:25 EST 2005

On 7/16/05, Travis Spencer <travislspencer at gmail.com> wrote:
> Now that XCBEventQueueLength has been removed from the public API,
> what is to used in its place?  

I think I just found the answer in an old patch of Jamey's:

If I'm not mistaken, this means that this Xlib code:

static int check_xpending_xlib (Display *display)
      return XPending (display);

Will produce the identical results to this XCB code:

static int check_xpending_xcb (Display *display)
      int retval;
      XCBConnection *c = XCBConnectionOfDisplay (display);

      XCBPollForEvent (c, &retval);

      return retval;

If I am mistaken, let me know.  Also, if anyone has recommendations
about testing this sort of stuff (Dickson), please pass that on too.



Travis Spencer

More information about the xcb mailing list