Add and/or document a way to get keyboard and mouse input for screencasting
Feature summary
For work, I usually need to screencast my keyboard keystrokes and mouse clicks. It is very userful for recording trainings or bug reports in UI.
There are plenty of tools to do this. None of them works under wayland.
I appreciate a lot how Wayland protects the user against keyloggers by letting apps only grab events targeted to them!
How would you like it to work
Just like in X11, but with a portal: App $NAME is asking permission to grab your keyboard an mouse inputs. Grant it? Yes/No.
Relevant links, screenshots, screencasts etc.
Downstream issues. They show how the community is asking for this feature, and how the app authors are clueless about how to fix it:
- https://discourse.flathub.org/t/help-with-permissions-for-kmcaster-on-wayland/2179 (I maintain KmCaster on Flathub)
- https://github.com/DaveJarvis/kmcaster/issues/12
- https://gitlab.com/screenkey/screenkey/-/issues/61
- https://github.com/snyball/Hawck/issues/21
- Show me the key has support for it, but requires root permission: https://github.com/AlynxZhou/showmethekey/tree/479364adf8a9219e9f6887d67b590c8efc809a04#why-your-program-needs-root-permission-screenkey-never-asks-for-it