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

Jeremy A. Kolb jkolb at brandeis.edu
Sun Jul 17 10:42:52 EST 2005


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).

Jeremy



More information about the xcb mailing list