[compiz] status of input redirection

Daniel Stone daniel at fooishbar.org
Mon Jun 4 14:16:52 PDT 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/compiz/attachments/20070604/a6ef8acc/attachment.pgp 


More information about the compiz mailing list