Skip to content

Multi-seat background input isolation (X11 XInput 2 master seat & Sway ext-transient-seat-v1) #61

Backlog

Description

@m3lonxd

core/computer_use_linux/background_input.py supports virtual pen/touchscreen on KDE/GNOME Wayland, CDP DevTools for Chromium tabs, AT-SPI EditableText, and Hyprland send_key_state. Window-level background keyboard/pointer delivery on X11 and Sway still needs seat-level isolation.

Scope

  • X11: Create a private XInput 2 master pointer/keyboard (XIAddMaster), focus target windows independently with XISetFocus, and dispatch keys through that master device while skipping WM-grabbed root shortcuts.
  • Sway 1.10+: Create a per-call ext-transient-seat-v1 seat, activate target windows on that seat via zwlr_foreign_toplevel_handle_v1.activate, and inject via virtual keyboard/pointer without disturbing seat0.
  • Wire both routes into core/computer_use_linux/background_input.py and capabilities()['background_input'].

Inspired by agent-sh/computer-use-linux (MIT) src/agent_seat.rs.

Activity

  1. added
    enhancement
    help wanted
    on Dec 1, 2026
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

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions