[Xcb] Figuring out how events differ in XCB compared to Xlib

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Sun Jul 17 16:37:29 EST 2005

On Sat, 16 Jul 2005, Jeremy A. Kolb wrote:

> On Sat, 16 Jul 2005, Travis Spencer wrote:
> > I need to figure out how events differ in XCB from Xlib.  Any
> > suggestions on which code or docs I should be reading to get up to
> > speed?  I've been reading the mailing list archive, but nothing is
> > jumping out at me.
> >
> > Specifically, I have some Xlib code that uses an XEvent type.  Is
> > there a one-to-one mapping to an XCB type?  Is it the same as
> > XCBGenericEvent?

> Hi Travis.
> I don't have too much experience with this but yes, I believe that it's
> the same as an XCBGenericEvent.  Once you have the event you have to cast
> it to the appropriate one.  Vincent wrote a really good tutorial.  You may
> want to look there, I believe a link is on our wiki (xcb.freedesktop.org).

I really need to update the tutorial, especially for the events part, now
that i understand a bit more how this stuff works

More information about the xcb mailing list