[PATCH RFC] New raw event behaviour for XI 2.1

Peter Hutterer peter.hutterer at who-t.net
Tue May 10 21:59:34 PDT 2011

The current raw event behaviour is pretty useless. RawEvents are sent to all
root windows but only if the device is not grabbed. Clients that need to
monitor devices can only do so by grabbing the device - rendering it
unusable to other clients. Real device monitoring (like we want for 2.1
touch support for example) is not possible.
I have yet to hear of someone who actually needs the current behaviour and I
can't imagine a use-case that does either.

Change the behaviour for clients supporting 2.1 so that raw events are
delivered regardless whether a grab is active on the device. Behaviour for
2.0 clients stays the same. Clients that grabbed devices to get raw events
will still get raw events, so that part of the 2.0 behaviour is preserved
even with 2.1.

No protocol additions, only documentation update necessary. No libXi patch
needed. Note that if you just apply the patch as-is, testing will fail since
XIQueryVersion still limits the server to 2.0. You need to manually bump the
server to 2.1 for the changes to take effect.

The X server patch builds onto the patchset I just sent out before.


More information about the xorg-devel mailing list