Add evdev hotkey backend for Wayland compatibility on Linux
On Wayland, XGrabKey via XWayland is not forwarded by most compositors. The new Linux implementation tries evdev first (works on Wayland and X11 without compositor-specific support — requires 'input' group or systemd-logind seat ACLs, which GNOME/KDE grant automatically). Falls back to X11 XGrabKey for plain X11 sessions or when evdev devices aren't accessible. The log now records which backend was selected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build !windows
|
||||
//go:build !windows && !linux
|
||||
|
||||
package main
|
||||
|
||||
|
||||
Reference in New Issue
Block a user