Comments (19)
Update: Got in contact with KDE devs. Should be fixed in 6.1.1 it was a type mismatch in dbus
from lan-mouse.
You can now set
capture_backend = "LayerShell"
in config.toml
as a workaround
from lan-mouse.
Okay TLDR:
Plasma 6.1.0 introduced the input-capture portal, i.e. the "frontend" to libei.
Previously, the layer-shell backend was used as a fallback, which is basically a 1px wide window that grabbed the mouse on the edge of the screen.
Now with the plasma input capture portal there were two issues:
-
Plasma used a wrong type in serialization, causing deserialization to fail in ashpd. This is now fixed in 6.1.1 after I reported it.
-
The second issue is that plasma does not (yet?) report
barrier_ids
, when input capture is activated.
This is an optional addition of the spec, however I expected it to be implemented, which is not the case.
So keep in mind, this is not a plasma bug and please dont report bugs ;).
The Input Capture Portal works by defining "barriers" and giving them an id. Then, when input capture is activated, The compositor reports the position and optionally a barrier id, which I can use to check which barrier was activated (i.e. which lan-mouse client).
There is several ways to go about this:
- Wait for plasma to implement
barrier_ids
& only support one client until this is done - Add the option to fallback to the layer-shell capture backend (I'd still prefer this to be a fallback)
- Work around barrier_ids by calculating the activated barrier from the activation position of the cursor
Nr. 3 is probably the most favourable.
from lan-mouse.
This log is unrelated. Did you update xdg-desktop-portal-kde as well?
from lan-mouse.
yes - xdg-desktop-portal-kde 6.0.90-1
from lan-mouse.
Ah I just noticed: they apparently implemented the input-capture portal. So that's interesting. I will have to test that later!
from lan-mouse.
I'm not in a hurry, just reported the issue. It is still a beta.
from lan-mouse.
Got around to testing this. I am getting valid barriers but not receiving any input events... Will have to see if thats a kwin bug or what else is going on here.
from lan-mouse.
Is the second issue 6.1.1 input (mouse, keyboard) freezes as soon as I touch edge?
from lan-mouse.
@xf- : yup exactly. (My setup suffers the same).
from lan-mouse.
The specific reason, why its getting stuck is actually because ashpd does not yet correctly handle the case of no barrier_id being sent.
Its already fixed but not yet in a new release.
from lan-mouse.
The specific reason, why its getting stuck is actually because ashpd does not yet correctly handle the case of no barrier_id being sent. Its already fixed but not yet in a new release.
I build the main branch and I had the issue. You mean committed and pushed towards main or a git release?
from lan-mouse.
No, the barrier_id is fixed in the ashpd main branch. It still requires a workaround in lan-mouse and an update of ashpd after there is a new ashpd release.
from lan-mouse.
(Any ETA when you could tag a new release with capture_backend
?)
from lan-mouse.
You can now set
capture_backend = "LayerShell"in
config.toml
as a workaround
Didn't work, maybe I added it in wrong spot, but via cli argument it works :)
from lan-mouse.
It should go on the top of the file
from lan-mouse.
This should now be fixed.
Unfortunately, there seems to be an issue with the "cursor shake" desktop effect on plasma, which results in a captured cursor appearing visible again, so please be aware of that ;)
https://bugs.kde.org/show_bug.cgi?id=490495
from lan-mouse.
Related Issues (20)
- How to run it on MacOS HOT 10
- Keyboard focus broken when using Windows Emoji selector (`win+;`) HOT 3
- Some programs with mouse capture (like FPS games) fail to prevent the virtual cursor from moving & leaving the screen HOT 4
- Mouse wheel distance/speed HOT 7
- After upgrade lan mouse version to 0.8.0, Windows side can't access Linux side input HOT 15
- Hyprland not working with 1px shell surface HOT 12
- Can't Install on MacOS HOT 7
- Mouse pointer can't return back to Hyprland's surface HOT 3
- Custom global/host hotkeys HOT 3
- 32-bit build fails HOT 2
- Just asking HOT 1
- KDE Request permission for input emulation cancelled immediately with no prompt HOT 3
- Works only one way HOT 1
- BUG: stoped working after upgrading to Plasma 6.1.0 HOT 7
- Can't control from Hyprland Server a Windows Client / Client can control Server HOT 9
- KDE Plasma back to windows make mouse frozen HOT 2
- Suggestion: Pointer speed/acceleration HOT 2
- Icons missing in Windows build HOT 2
- GNOME Wayland -> MacOS compatiblity 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.