[xserver][PATCH] Tablet to screen coordinate translation
daniel at fooishbar.org
Sun Mar 4 09:36:11 PST 2007
On Sun, Mar 04, 2007 at 06:17:07PM +0100, Magnus Vigerlöf wrote:
> On Wednesday 28 February 2007 02:02, Peter Hutterer wrote:
> > > I'm not sure I like the new way since it limits the value range the
> > > driver may
> > > report and also put the full responsibility of handling
> > > notification of
> > > screen resolution changes in the device driver for its device.
> > just had a look at the old code, you're right. sounds reasonable to me.
> > care to submit a patch?
> Ok, had to make some assumptions but here's a patch adding calls to the
> device-specific conversion routines defined in the LocalDeviceRec structure.
> This will make it possible to send extension events with the granulatity on x
> & y axis of the sending device while the core-events will be scaled to the
> screen resolution.
NAK: The entire point of GPE is that it's a unified interface that
generates all events necessary (core, Xi, MPX). IMO, the best idea
would be to send each event (or the list of events) back to the driver
for conversion. After all, this is why GPE returns the events back to
the DDX, instead of enqueuing itself.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the xorg