[PATCH v2 03/28] Input: Add flags to RawDeviceEvent

Daniel Stone daniel at fooishbar.org
Thu Jun 23 02:53:34 PDT 2011


Hi,

On Thu, Jun 23, 2011 at 01:41:58PM +1000, Peter Hutterer wrote:
> On Thu, Jun 09, 2011 at 06:17:11PM +0100, Daniel Stone wrote:
> > Add a flags member which will be copied wholesale into the resultant
> > xXIRawEvent.
> 
> sorry to flip-flop on this, but seing this patch and reading the XI2 proto
> definition of XIRawEvents makes me think that solving raw events properly is going
> to be trickier than just the flag setting. Technically the raw data is a
> button press but the transformed values are of a different number, etc. etc.
> 
> If raw events should continue to be the driver-native data it may be better
> to just skip them altogether and not emulate them at all. What do you think?

Hmm, it's hard to say.  Certainly on the face of it it seems cleaner to
leave it as driver-native data, but I'm kind of worried that clients may
have come to rely on the principle that any DeviceEvent will show up
with a corresponding RawEvent.

If we're going down this route, it might be best to cut raw events from
things like XTEST/WarpPointer as well?

Cheers,
Daniel


More information about the xorg-devel mailing list