[Xcb] xcb and composite

Jeremy Kolb jkolb at brandeis.edu
Fri Oct 28 08:28:47 PDT 2005


Vincent Siles wrote:
> Hi!
> I'm trying to use the composite extension with xcb, but I don't really
> what value to pass to the QueryVersion function.
> I've looked to xcompmgr sources (xlib , not xcb) and it seems that they
> get something from the function (they use &composite_major ,
> &composite_minor, so CARD32* values) whereas in the composite.h of xcb,
> the value expected is a CARD32 one.
> 
> Someone can tell me how to initialize composite with xcb ?
> 
> Vincent
> 
> PS : please excuse my poor english, I'm still learning :)
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


Hi Vincent,

You need to pass in the minor and major version numbers you are looking
for to the XCBCompositeQueryVersion.  The reply from
XCBCompositeQueryVersionReply will contain the actual major and minor
versions or the ones you passed in, whichever is higher.

Jeremy


More information about the Xcb mailing list