Skip to content

[codex] fix linux hook device selection#356

Draft
Tinnci wants to merge 1 commit into
AprilNEA:masterfrom
Tinnci:codex/fix-linux-hook-touchpad
Draft

[codex] fix linux hook device selection#356
Tinnci wants to merge 1 commit into
AprilNEA:masterfrom
Tinnci:codex/fix-linux-hook-touchpad

Conversation

@Tinnci

@Tinnci Tinnci commented Jul 5, 2026

Copy link
Copy Markdown

Fixes #355.

What changed

  • Start the OS mouse hook only after inventory reports an online routed mouse or trackball with pointer/button capability.
  • Stop the hook again when no hookable device remains or accessibility is revoked.
  • Filter Linux evdev hook candidates to Logitech input devices and continue excluding OpenLogi virtual devices.

Why

On Linux the hook backend previously enumerated every evdev device with BTN_LEFT before HID++ inventory had established a target device. On laptops this can include the built-in touchpad or TrackPoint, so OpenLogi could grab those devices and create virtual mice even when there was no Logitech pointing device to manage.

Validation

  • cargo fmt --all -- --check
  • CARGO_TARGET_DIR=/home/drie/.cache/openlogi-target cargo clippy --workspace --all-targets -- -D warnings
  • CARGO_TARGET_DIR=/home/drie/.cache/openlogi-target cargo test --workspace
  • git diff --check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Linux/KDE Wayland: agent virtual mice disable built-in touchpad

1 participant