[Wayland-bugs] [Bug 96982] xf86-input-libinput: Rough and lopsided mouse movement in games/apps that reposition mouse
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 8 02:50:53 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96982
--- Comment #14 from Peter Hutterer <peter.hutterer at who-t.net> ---
(In reply to Danni H from comment #13)
> Hi, where would be a good place to discuss the implementation of a possible
> fix for this issue?
best is the xorg-devel list, this is core X server stuff.
> I'm not really sure why you would need to reset subpixel information when
> traveling large distances. Wouldn't one simply be able to do something like
> this:
>
> xPos += floor(destinationX) - floor(sourceX);
>
> This would move the cursor while preserving the fractional because it would
> only ever adjust the mouse position by some number of whole pixels.
well, that's the bit up for discussion. Because we're only dealing with
subpixel here I think we should be fine with the 0.5 offset but my gut tells me
warping a request of 0/0 to 0.9/0.9 because that's the leftover is wrong. There
are a few places where subpixels matter (iirc pointer barries for example) and
you may different behaviour depending on whether there's a remainder or not.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160808/a0f912d6/attachment.html>
More information about the wayland-bugs
mailing list