[Xcb] using xcb in existing apps

Jeremy A. Kolb jkolb at brandeis.edu
Fri Mar 2 10:54:07 PST 2007


On Fri, 2 Mar 2007, Ian Osgood wrote:

> Questions like this could also be asked in the XCB mailing list.
> 
>  > I want to use xcb in an existing app is there a function that returns
>  > a xcb_window_t when supplied a Window created  by XCreateWindow?
> 
> You can use an Xlib Window anywhere an xcb_window_t is required. In  
> general, XID types like Window (X.h:typedef XID) are synonymous with  
> their XCB equivalents.
> 
> Ian
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
> 

Sorry, you are free to mix xcb and xlib just know that things like 
events/structures etc. can't be easily converted between the two.  You 
also can't mix xlib events and xcb events.

Jeremy



More information about the Xcb mailing list