Skip to content

Recommended way to hook onto keymap and modifiers events #1776

@axelkar

Description

@axelkar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions