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

Barton C Massey bart at cs.pdx.edu
Sun Jul 17 13:42:49 EST 2005


Does XCBPollForEvent() return a pointer to an extracted
event if one is present?

	Bart

In message <e3b7bac05071619267030ff76 at mail.gmail.com> you wrote:
> 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:
> http://lists.freedesktop.org/archives/xlibs-commit/2004-September/001362.html
> 
> 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.
> 
> -- 
> 
> Regards,
> 
> Travis Spencer
> _______________________________________________
> xcb mailing list
> xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the xcb mailing list