smithay icon indicating copy to clipboard operation
smithay copied to clipboard

Recommended way to hook onto keymap and modifiers events

Open axelkar opened this issue 5 months ago • 1 comments

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

axelkar avatar Jul 15 '25 07:07 axelkar

Possibly relevant: https://github.com/Smithay/smithay/pull/1388

Drakulix avatar Jul 15 '25 09:07 Drakulix