[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-compiz
Subject:    Re: [compiz] status of input redirection
From:       Daniel Stone <daniel () fooishbar ! org>
Date:       2007-06-04 21:17:17
Message-ID: 20070604211717.GA4447 () fooishbar ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Mon, Jun 04, 2007 at 05:06:20PM -0400, David Reveman wrote:
> On Sat, 2007-06-02 at 04:29 +0300, Daniel Stone wrote:
> > On Fri, Jun 01, 2007 at 03:47:17PM -0400, David Reveman wrote:
> > > +	switch (events[i].u.u.type) {
> > > +	case MotionNotify:
> > > +	case ButtonPress:
> > > +	case ButtonRelease:
> > > +	case KeyPress:
> > > +	case KeyRelease:
> > > +	case EnterNotify:
> > > +	case LeaveNotify:
> > 
> > Hi,
> > This needs to be aware of Xi events.
> 
> Yea, I forgot about that. Will the attached patch work or are those
> device events not using the keyButtonPointer structure?

Unfortunately, they're not using keyButtonPointer, and you can't put it
in a case, as the event numbers are non-constant.  They use
deviceKeyButtonPointer, but you also need to check deviceValuator.  See
dix/getevents.c, and mi/mieq.c.

Cheers,
Daniel

["signature.asc" (application/pgp-signature)]

_______________________________________________
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic