XInput: Tablet to screen coordinate translation

Peter Hutterer mailinglists at
Tue Feb 27 17:02:32 PST 2007

On 28/02/2007, at 10:17 , Magnus Vigerlöf wrote:
> So the coordinates that is sent on the first two axis (x & y) to
> xf86PostXXXEvent must be converted into coordinates that will fit  
> the actual
> screen resolution (provided first_valuator is 0)?

True, that how it appears to me.

> This conversion is something that the xf86PostXXXEvent-functions  
> seems to have
> handled itself previously with a little help by the actual driver  
> (by calling
> LocalDeviceRec->conversion_proc() from within xf86PostXXXEvent), so  
> it can
> generate XInput events with the native (sub-pixel precision)  
> resolution for
> that device which is independent of the screen and also core-events  
> that is
> scaled to the screen resolution.
> 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?


Multi-Pointer X Server

More information about the xorg mailing list