[xserver][PATCH] Tablet to screen coordinate translation

Magnus Vigerlöf Magnus.Vigerlof at home.se
Sun Mar 4 09:17:07 PST 2007

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.

During testing I did saw some strange results in the befinning of every stroke 
in Gimp with my tablet in relative mode, there would always be a line from 
0,0 to the current position. This is not related to this patch however.

 Magnus V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postmotionevent_rescale_coord.diff
Type: text/x-diff
Size: 15261 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070304/2eb15c28/attachment.diff>

More information about the xorg mailing list