[Xcb] Xinerama protocol

Jamey Sharp jamey at minilop.net
Mon Mar 28 22:32:38 PST 2005


On Tue, Mar 29, 2005 at 07:35:38AM +0200, Vincent Torri wrote:
> On Mon, 28 Mar 2005, Jamey Sharp wrote:
> > There are a number of X requests (CreateWindow and CreateGC, for
> > instance) that can take a whole bunch of optional parameters. You're
> > supposed to provide a bitmask indicating which of these parameters you
> > actually want to specify, and an array with one entry for each bit that
> > was set to 1. By using the valueparam tag, you're telling XCB to count
> > the number of 1-bits in the BITMASK in order to find out how long of an
> > array you're providing to it.
> 
> It seems that in that case, it's just a CARD32 (i looked at the CopyGC
> protocol).

CopyGC is a different case. Look at CreateGC instead: it uses a
valueparam tag in probably the same way that is needed here.

--Jamey


More information about the xcb mailing list