Skip to content

RDP: Support for high resolution mouse wheels

Quoting the last commit message:

Scrolling events in RDP are not just discrete scrolling events.
Instead, a wheel value (default: 120) is submitted.
For high resolution mouse wheels this value is lower (e.g. 60 for
double resolution mouse wheels).
Currently, gnome-remote-desktop assumes that all mouse wheels are the
same, i.e. produce the same wheel value.
This is however not always the case and if a user with a high
resolution mouse wheel uses g-r-d, it will be slippery.

Fix this issue by using the previously implemented NotifyPointerAxis()
function to submit custom scroll distances.
Additionally, use the value 12 as scroll step, since the current
(default) scroll step 10 only allows using double resolution mouse
wheels, but not triple or quadra resolution mouse wheels.

See also: https://devblogs.microsoft.com/oldnewthing/20130123-00/?p=5473

Merge request reports