How to lock a HID device to a specific window or screen?

On kde/wayland

i want to lock a keyboard and controller so they are only seen by one window, as in inputs only go that window and it cant move elsewhere.

Also using nixos.

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    1
    ·
    19 hours ago

    Stupid idea I just had. Maybe you could try restricting the respective devices to a single user or group and run that application as a different user. No idea if that would work or how Wayland reacts to apps started as a different user.