Hacker News new | ask | show | jobs
by floatboth 2844 days ago
On X11 and Windows (except UWP apps probably?), yes. On Wayland, random apps can't listen to global keyboard events.
1 comments

A number of people dislike Wayland because applications can't watch the screen, keyboard input, clipboard etc outside of their own window. Really, that's one of its great strengths over X11.
I'm curious, how does an application such as OBS Studio (https://obsproject.com/) work with such limitations in place?
Through some API that checks authorization.

Eventually everyone should be using https://github.com/flatpak/xdg-desktop-portal/blob/master/da... (which is based on https://pipewire.org )

For now, e.g. https://github.com/fzwoch/obs-gnome-screencast uses org.gnome.Shell.Screencast