-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Natural Scrolling for xrdpMouse #310
Comments
This is similar to #251 in terms of code changes, I think, and might be convenient to consider together. |
It's worth considering. |
I'm working on this. I will submit an initial pull request in May. |
I raised a draft PR #315. We probably need to discuss the specifications.
In my Win11 environment, scroll directions are
and there's no user-facing interface to change the scrolling direction as @rowlap mentioned. I remember it was possible a few years ago though. We probably don't want to reverse wheel scroll directions so I implemented reversing touch scroll first. If we control the scrolling direction on xrdp side, we need to care about VNC backend that doesn't distinguish between touch scroll and wheel scroll. @rowlap @matt335672 What do you think? |
Also, it would be nice if we could configure this kind of configuration via libinput. |
If the virtualized mouse / touchpad were to advertise support for what libinput calls "Natural scrolling", I think we'd be fine. The request came via a user who was previously overriding with |
I've had a quick look at this. The TigerVNC (at least for 1.12.0) is similar to the xrdp one:-
Adding support for libinput won't automatically work with VNC, but if we can get this working it might(?) be possible to raise a PR on TigerVNC. From what I can tell, we'd need to pull bits of the xf86-ibput-libinput driver into xrdpmouse. The repo for that driver is here, but it looks like it's about to go away for 48 hours:- https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput Debian mirror is here:- https://salsa.debian.org/xorg-team/driver/xserver-xorg-input-libinput I'd be happy to look at it, but I'm a bit snowed under at the moment. |
Would it be possible to support Natural Scrolling or a similar option for xrdpMouse, in order to allow end-users to invert the direction of the scroll wheel?
Although this could be handled by the RDP client, Windows for example provides no standard setting to configure the direction of mouse scrolling.
In previous versions of xrdp, scroll wheel (and touchpad?) emulation converted these to button 4 and 5 events which could be overridden with xmodmap pointer settings.
Since xrdp 0.9.25, support for touch controls has replaced button 4/5 clicks, and the xmodmap method no longer works.
The text was updated successfully, but these errors were encountered: