Re: [PATCH v2 libinput 1/2] touchpad: drop the tap finger count

2015-05-04 Thread Hans de Goede
Hi, On 05/04/2015 12:37 PM, Peter Hutterer wrote: Use tp->nfingers_down as trigger when we have no fingers left on the touchpad and when we should return to idle. If all touchpoints end in the same frame tp->nfingers is 0. Thus when we handle the first tap release we transition to IDLE which now

[PATCH v2 libinput 1/2] touchpad: drop the tap finger count

2015-05-04 Thread Peter Hutterer
Use tp->nfingers_down as trigger when we have no fingers left on the touchpad and when we should return to idle. If all touchpoints end in the same frame tp->nfingers is 0. Thus when we handle the first tap release we transition to IDLE which now needs to handle (and discard) any touch release even