[Xcb] Xinerama protocol

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Mon Mar 28 22:47:18 PST 2005



On Mon, 28 Mar 2005, Jamey Sharp wrote:

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

Well, here are the protocols :

CreateGC
           cid: GCONTEXT
           drawable: DRAWABLE
           value-mask: BITMASK
           value-list: LISTofVALUE

CopyGC
           src-gc, dst-gc: GCONTEXT
           value-mask: BITMASK

XineramaSelectInput
  1   CARD8		   opcode
  1   3			   XINERAMA opcode
  2   2			   request length
  4   WINDOW		   window
  4   BITMASK		   event mask
	#x01 XineramaEnterEvent
	#x02 XineramaLeaveEvent

For me, it's just that event mask could take 2 values (1 and 2). Am I
wrong ?

Vincent


More information about the xcb mailing list