Spurious mouse button release is recognized but "spurious mode" is not effective
Summary
Superficial observation and motivation: I press the left mouse button down; 9 seconds later, I release the button; the application ("Geeqie" image viewer) has recognized 4 clicks in the meantime, whereas 1 click (1 press + 1 release) was intended only. (Geeqie proceeds to the next image when I click on the present image.)
My Analysis results using "libinput record", "libinput replay", "libinput debug-events --verbose", and the "Geeqie" image viewer software:
The "libinput record" log contains 8 events, which seem to be the 4 press events and 4 release events. Okay, the mouse seems to have a "nervous" left button.
From the "libinput debug-events" log (when I replay the "libinput record"), I can see that the spurious mouse button release is recognized. The log shows only 3 clicks ("BTN_LEFT (272) pressed" / "released"), which seems to show that "spurious mode" is active.
In reality, the "Geeqie" application reacts to 4 clicks, which shows that "spurious mode" does not work as expected in this case. I expected that only the mouse presses and releases shown in the "libinput debug-events" log are received by the application software. But obviously it receives more than these 3 clicks.
Is this "defect" caused by the libinput software itself? Or is it caused by a wrong usage or understanding of libinput?
Steps to reproduce
Hopefully the issue can be reproduced on other machines as well, by means of the "libinput record" log file and the "Geeqie" image viewer (or another application which can be used to count mouse clicks):
- Open a terminal and enter "libinput debug-events --verbose".
- With the mouse, point on a spot where mouse clicks can be counted. (In my case: the "Geeqie" image viewer: Open the first of a series of images, place the mouse pointer on the image.)
- Open a second terminal and enter "sudo libinput replay libinput_record.txt" (the mouse should still point to the same spot).
- Wait approximately 10 seconds (until the "replay" has ended).
- Result (on my computer): the first terminal shows the expected "spurious mode" correction (3 clicks made out of 4 click signals from the mouse), but the click counter ("Geeqie" in my case) has counted 4 clicks ("Geeqie" now displays the fifth image).
- (Optional step: repeat the above procedure, then the "debug" terminal window shows only 2 clicks, but "Geeqie" still receives 4 clicks.)
The needed file "libinput_record.txt" is attachedlibinput_record.txt.
Required information
- libinput version: 1.12.6-2+deb10u1
- hardware information: Hardware.txt
-
libinput record
output: see attachment -
libinput debug-events --verbose
output: libinput.txt