[Xcb] Pb with ButtonPressEvent

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Mon Nov 21 00:39:19 PST 2005


> hey
>
> look at the detail.id value. I can't remember what the state event is for.

i got it : the state field is the state of the mouse or keyboard just
before the event. It's for ctrl-shift-left button combination, for example
:)

I should update the tutorial.

Vincent
>
> On Mon, 21 Nov 2005 vincent.siles at gmail.com wrote:
>
> > Hi,
> > I've got some trouble when I get the ButtonPressEvent:
> >
> > I'm creating a Window with the following masks:
> >  ButtonPressMask | ButtonReleaseMask | ButtonMotionMask
> >  | ExposureMask | EnterWindowMask | LeaveWindowMask
> >  | KeyPressMask | KeyReleaseMask | PointerMotionMask;
> >
> > When I get a ButtonPressEvent, the field state of the
> > XCBButtonPressEvent value is always set to 0. But according to the tutorial
> > this value should represent which button is pushed (I want to select if
> > right or left click has been done).
> >
> > Am I making the right things ?
> >
> > Vincent
> >
> >
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
>


More information about the Xcb mailing list