Keyboard recognized as mouse causing spurious button debouncing
Summary
When a mouse button is held down it behaves as if it's being pressed multiple times. Issue occurs even if the keyboard's USB pass-through is unplugged.
Steps to reproduce
Press some mouse button on the mouse
libinput version you encountered the bug on
Version : 1.15.2-1.1
Hardware information:
Device 'Logitech G502 HERO Gaming Mouse':
Device Enabled (148): 1
Coordinate Transformation Matrix (150): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (283): 0
libinput Natural Scrolling Enabled Default (284): 0
libinput Scroll Methods Available (285): 0, 0, 1
libinput Scroll Method Enabled (286): 0, 0, 0
libinput Scroll Method Enabled Default (287): 0, 0, 0
libinput Button Scrolling Button (288): 2
libinput Button Scrolling Button Default (289): 2
libinput Middle Emulation Enabled (290): 0
libinput Middle Emulation Enabled Default (291): 0
libinput Accel Speed (292): -0.400000
libinput Accel Speed Default (293): 0.000000
libinput Accel Profiles Available (294): 1, 1
libinput Accel Profile Enabled (295): 0, 1
libinput Accel Profile Enabled Default (296): 1, 0
libinput Left Handed Enabled (297): 0
libinput Left Handed Enabled Default (298): 0
libinput Send Events Modes Available (268): 1, 0
libinput Send Events Mode Enabled (269): 0, 0
libinput Send Events Mode Enabled Default (270): 0, 0
Device Node (271): "/dev/input/event9"
Device Product ID (272): 1133, 49291
libinput Drag Lock Buttons (299): <no items>
libinput Horizontal Scroll Enabled (300): 1
Other log output:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB Consumer Control id=13 [slave pointer (2)]
⎜ ↳ Logitech G502 HERO Gaming Mouse id=14 [slave pointer (2)]
⎜ ↳ Logitech G502 HERO Gaming Mouse Consumer Control id=16 [slave pointer (2)]
⎜ ↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB Mouse id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB id=8 [slave keyboard (3)]
↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB id=9 [slave keyboard (3)]
↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB Keyboard id=10 [slave keyboard (3)]
↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB System Control id=12 [slave keyboard (3)]
↳ Logitech G502 HERO Gaming Mouse Keyboard id=15 [slave keyboard (3)]
↳ Logitech G502 HERO Gaming Mouse System Control id=17 [slave keyboard (3)]
↳ Logitech G935 Gaming Headset Consumer Control id=18 [slave keyboard (3)]
↳ Logitech G935 Gaming Headset id=19 [slave keyboard (3)]
↳ HyperX Alloy Elite RGB HyperX Alloy Elite RGB Consumer Control id=20 [slave keyboard (3)]
↳ Logitech G502 HERO Gaming Mouse Consumer Control id=21 [slave keyboard (3)]