[Wayland-bugs] [Bug 85715] wl_fixed is not precise enough for high dpi mice

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 1 06:03:21 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=85715

--- Comment #2 from Jonas Ã…dahl <jadahl at gmail.com> ---
(In reply to Pekka Paalanen from comment #1)
> Can we fix this by just changing from wl_fixed_t type to double in Weston
> for computing and storing the pointer location, or does the rounding to zero
> happen already in libinput?

Libinput works with double's internally so nothing should have been shaved off.

> 
> This is actually a very good issue to notice *before* we stabilized the
> pointer-lock Wayland protocol extension, because it raises the question
> whether wl_fixed_t is appropriate for the relative motion events or do we
> need a more precise value type.

If deltas and coordinates in wl_fixed_t is enough for clients to work properly,
we could just cut off the left over fraction from converting from double to
wl_fixed_t and append it to the next event. This would fix the issue of small
movements being dropped. What it wouldn't fix is clients receiving these small
movements, and to fix that we either need a new larger data type in the Wayland
wire protocol, or have a non-fraction and fraction values as separate ints or
something.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20141101/f963bbe9/attachment.html>


More information about the wayland-bugs mailing list