Skip to content

Wayland+Xwayland gives enough XInput2 support to trigger that branch, but not enough to track multiple mice #10

@mittonk

Description

@mittonk

No matter how many mice are connected, Wayland with the Xwayland compatibility layer always reports these three pointing devices:

$ ./detect_mice
ManyMouse driver: X11 XInput2 extension
#0: xwayland-pointer:1
#1: xwayland-relative-pointer:1
#2: xwayland-pointer-gestures:1

Disabling the XInput2 code branch falls back to evdev and works if device permissions are good:

$ ./detect_mice 
ManyMouse driver: Linux /dev/input/event* interface
#0: wireless wireless 2.4G Mouse
#1: USB Optical Mouse
#2: bcm5974

Would it be worth detecting Wayland or Xwayland, and not triggering the XInput2 branch in that case?

(Removing Xwayland also triggers the evdev branch, but breaks many other programs.)

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