mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #133] Mouse wheel distance/speed #54
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xf- on GitHub (May 15, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/133
Still broken - build the client and server on latest main commit
Server & client Wayland to Wayland
Fixed - inverted scroll direction
@feschber commented on GitHub (May 15, 2024):
What desktop? KDE?
@xf- commented on GitHub (May 16, 2024):
Yes on both. Like I wrote in the other issue, reverting the change helps.
@feschber commented on GitHub (May 16, 2024):
I've tried pretty much anything but unfortunately there seems to be a bug with the KDE remote desktop portal implementation.
It might just be that they report 0 discrete scroll steps here: https://invent.kde.org/plasma/kwin/-/blame/master/src/backends/fakeinput/fakeinputbackend.cpp#L153
Basically there is two kinds of scroll events: Axis and AxisDiscrete120.
Axis is for touchpads and given in pixels, while AxisDiscrete120 is given in wheelsteps with each step being equal to 120 in value.
Now the xdg-desktop-portal-kde, which is being used here calls to the
fake_inputprotocol:https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/master/src/remotedesktop.cpp?ref_type=heads#L322
https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/master/src/waylandintegration.cpp?ref_type=heads#L414
while translating discrete scroll events into fakeinput "Axis" events which are handled in kwin:
https://invent.kde.org/plasma/kwin/-/blame/master/src/backends/fakeinput/fakeinputbackend.cpp#L132
Kwin calls to
pointerAxisChangedwhile setting discrete Scrolling steps to 0...So all of this seems to be fundamentally broken in KWIN itself and I fear there is nothing I can do right now to fix it.
I will however make sure to report it upstream
@xf- commented on GitHub (May 16, 2024):
THX for your work. I still have my patched build and it works.
@feschber commented on GitHub (May 16, 2024):
It's not perfect though, right? In firefox, at least from my testing it always jumped around a bit and did not scroll smoothly (instead jumping to the next possition directly).
Regardless, I can see if I can replicate the behaviour to what your patch looks like as closely as possible.
Do you mean the state before
e21ab02a6eor the current master withe21ab02a6ereverted?@xf- commented on GitHub (May 18, 2024):
Yeah, it is more or less the old function. It inverts the scrolling, but the speed is normal. So no 120 implementation. I use current release with reverting to this without 120
e21ab02a6e (diff-c04e25924525b7dc3115df2f79d08fd1eecbbd91bf16f575fcba89e885205f05L737-L772)@feschber commented on GitHub (Jul 16, 2024):
https://invent.kde.org/libraries/plasma-wayland-protocols/-/merge_requests/83
https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/302
https://invent.kde.org/plasma/kwin/-/merge_requests/6116
not 100% fixed yet, but this should improve things
@rodhfr commented on GitHub (Nov 19, 2024):
Same problem hyprland to hyprland. Mouse wheel not working and touchpad scrolling only works downwards in a fixed way. Middle click works fine.
@ruckerzerg commented on GitHub (Jan 27, 2025):
Can confirm: Scroll not working on Hyprland to Hyprland.
@feschber commented on GitHub (Jan 27, 2025):
can you try the latest development release (of lan-mouse)? There was a fix merged a week ago.