[PATCH libinput 1/1] Fix debouncing algorithm

Peter Hutterer peter.hutterer at who-t.net
Thu Nov 16 01:29:05 UTC 2017


On Wed, Nov 15, 2017 at 09:31:07PM +0100, Vicente Bergas wrote:
> On Wed, Nov 15, 2017 at 1:38 AM, Peter Hutterer
> <peter.hutterer at who-t.net> wrote:
> > ... I'd appreciate it if you could give it a test
> > though.
> >
> > Cheers,
> >    Peter
> 
> Hi Peter,
> just tested 4aa25b9de96321d946ed399b614d52deadf74403 (tip of your
> debouncing branch on github), it failed on the very first click:
> [  1910.895] (EE) event6  - ROCCAT ROCCAT Kone Pure: (EE) libinput
> bug: invalid debounce event DEBOUNCE_EVENT_RELEASE in state
> DEBOUNCE_STATE_IS_UP
> After this, it was like the left button was permanently pressed.
> OTOH, the patch I sent to the list has been debouncing my mouse for
> about a week with no issues, so far.

sorry, was just a bug. I had two states end up in IS_UP after a button
press. Switched them to IS_DOWN and all is good now, see commit
ba9e6012a52b.

Cheers,
   Peter


More information about the wayland-devel mailing list