Hacker News new | ask | show | jobs
by mike_hock 34 days ago
> until one considers the practical implications

You failed at that step.

The practical implication is that every other X11 app can also read your input even when it's not in the foreground.

1 comments

Every program can listen to keypresses via /dev/input
This is false. A process needs read permission on the relevant `/dev/input/` device, typically by running as root or as a user in a group like `input`. Normal desktop users generally should not be in the input group. Regular applications receive keyboard input through the compositor/windowing system.
Not on my machines, or most for that matter.