smithay
smithay copied to clipboard
Recommended way to hook onto keymap and modifiers events
I'm writing an EIS implementation for Niri. What's the recommended way to hook onto the keymap and modifiers events, when the event target (that only copies the events) isn't a Wayland client?
Not sure how the receiver context (EI context for InputCapture portal) will interact with this.
A few ideas come to mind:
- Wrap
KeyboardGrab - Diff before/after every call to
KeyboardHandle - Implement code for hooks in Smithay
Possibly relevant: https://github.com/Smithay/smithay/pull/1388