[xserver][PATCH] Tablet to screen coordinate translation

Daniel Stone 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...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070304/a3d010af/attachment.pgp>

More information about the xorg mailing list