Skip to content

clickpad: Protect against ghost-clicks on click-pad

Andras Szalai requested to merge sly010/libinput:xps15touchpad into main

Background:

The 2020 (and maybe 2019) Dell XPS15 has a notoriously "loose" touchpad and a body that "flexes" under its own weight. i.e. https://www.youtube.com/results?search_query=xps+15+touchpad+loose+click

Whenever I lift the laptop with one hand, the body flexes more than the touchpad, which causes a click. I can basically walk around holding an open laptop and it will reliably click every few steps.

This small change fixed the problem for me, it basically checks that there are some fingers on the clickpad. This however probably breaks touchpads with discrete buttons and maybe other cases that I don't know of? Can this be made generic, or should I create a quirk that can be enabled on specific models?

I am happy to do whatever way you think is best.

Edited by Andras Szalai

Merge request reports