Comments (7)
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_input
protocol:
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 pointerAxisChanged
while 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
from lan-mouse.
What desktop? KDE?
from lan-mouse.
What desktop? KDE?
Yes on both. Like I wrote in the other issue, reverting the change helps.
from lan-mouse.
THX for your work. I still have my patched build and it works.
from lan-mouse.
THX for your work. I still have my patched build and it works.
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 e21ab02 or the current master with e21ab02 reverted?
from lan-mouse.
THX for your work. I still have my patched build and it works.
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 e21ab02 or the current master with e21ab02 reverted?
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
e21ab02#diff-c04e25924525b7dc3115df2f79d08fd1eecbbd91bf16f575fcba89e885205f05L737-L772
from lan-mouse.
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
from lan-mouse.
Related Issues (20)
- Could not resolve host HOT 2
- Where do I put the config.toml file in Windows? HOT 2
- Having issues scrolling with trackpad on hyprland HOT 1
- How to stop `--test-capture`? HOT 4
- No keyboard input HOT 1
- Cannot install in Ubuntu 24.04 HOT 4
- Mac os - m1 HOT 1
- cannot connect to my clients in windows when running it as daemon HOT 2
- idle inhibit on unfocused computers HOT 3
- Customizable cursor activation area HOT 1
- Can't connect to Windows via Linux, "os error 10040" HOT 3
- Input capture not working with Wayland/Linux/labwc HOT 2
- Hyprland only capture mouse on right and bottom HOT 3
- Question: Input Capture MACOS? and Hyprland 0.42 compatible? HOT 2
- Recover from `Resource temporarily unavailable` error HOT 5
- On Fedora KDE 40 the port won't open HOT 25
- If the hostname cannot be resolved, then ips should be used. HOT 6
- Issue with Hotkeys while controlling MacOS M1 HOT 3
- MacOS Client: Globe Modifier sometimes gets sent / stuck HOT 2
- IPv6 support: Address family not supported by protocol (os error 97) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lan-mouse.