[Xcb] xcb and composite

Josh Triplett josh.trip at verizon.net
Sun Oct 30 14:10:27 PST 2005

Jeremy Kolb wrote:
> Vincent Siles wrote:
>>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 ?
> 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.

Whichever is lower, I think; the idea is that if you tell the server the
maximum version you can handle, it returns the minimum of that and the
version it supports, which is the maximum version supported by both the
client and the server.

- Josh Triplett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20051030/9cee72c2/signature.pgp

More information about the Xcb mailing list