[PATCH] dix: work around scaling issues during WarpPointer (#53037)

Keith Packard keithp at keithp.com
Tue Aug 14 17:19:45 PDT 2012


Peter Hutterer <peter.hutterer at who-t.net> writes:

> In WarpPointer calls, we get input in screen coordinates. They must be
> scaled to device coordinates, and then back to screen coordinates for screen
> crossing and root coordinates in events.
>
> The rounding errors introduced (and clipping in core/XI 1.x events) can lead
> to the actual position being different to the requested input coordinates.
> e.g. 200 scales to 199.9999, truncated to 199 in the event.

Would it be useful to do a bit of rounding in these conversions
somewhere?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120814/b2ea5c2e/attachment.pgp>


More information about the xorg-devel mailing list