Skip to content

feat: per-instance keyboard/mouse isolation #50

Description

@hikaps

What's requested

Per-instance keyboard/mouse isolation — an assigned keyboard or mouse should control only the instance it's assigned to, the way gamepad controllers already do.

Current behavior

Gamepad controllers assign and isolate correctly per instance: DeviceManager assigns hidraw/gamepad devices and gamescope's --evdev routes those gamepad evdev nodes into the per-instance gamescope. Keyboard/mouse evdev devices aren't routed into a per-instance gamescope, so they stay attached to the host compositor and control everything.

Requested change

Route the assigned kb/mouse evdev into that instance's gamescope, analogous to gamepads. This needs care: keyboards/mice are also how the primary session is navigated, so a full grab must avoid locking the user out of the host.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions