[compiz] status of input redirection
David Reveman
davidr at novell.com
Tue Jun 5 11:41:59 PDT 2007
On Tue, 2007-06-05 at 00:17 +0300, Daniel Stone wrote:
> 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.
I've adjusted the patch for deviceKeyButtonPointer. Like in my previous
patch, device events are checked for in the default so that they are not
constant should already be handled fine. Not sure exactly what to do
about deviceValuator events yet.
-David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xserver-input-transform-xi-2.patch
Type: text/x-patch
Size: 1314 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070605/11f1a8e8/attachment.bin>
More information about the xorg
mailing list