Wed Feb 15, 2023 1:27 pm
I'm trying to build a mouse-sharing application / software kvm with wayland support as a primary goal: https://github.com/ferdinandschober/lan-mouse.
While I plan to use https://gitlab.freedesktop.org/libinput/libei in the future, I thought I'd try to support input emulation directly through wayland protocols as well,
which works great using the wlroots protocols https://wayland.app/protocols/wlr-virtual-pointer-unstable-v1 and https://wayland.app/protocols/virtual-keyboard-unstable-v1.
For KDE the fake-input protocol https://wayland.app/protocols/kde-fake-input appeared to be the way to go, but when listing globals the protocol does not show up.
Output from https://github.com/smithay/wayland-rs globals example:
In fact the protocol does not list any supported compositors (yet?).
I then tried to look at the way kde-connect does it, which raised some questions:
In the CMakeLists.txt file (https://invent.kde.org/network/kdeconnect-kde/-/blob/master/plugins/mousepad/CMakeLists.txt), the protocol seems to be required, however I can't seem to find any use of it.
Instead, the remote desktop portal appears to be used here (https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.RemoteDesktop).
What is the current state of the fake-input protocol? Has it simply never been implemented and should not be used?
What should I use instead? Is the RemoteDesktop dbus interface the way to go? Are there any plans to support libei in the future?
Thanks in advance!
Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]