touchpad: init the thumb size threshold to INT_MAX

For consistency with the pressure threshold, both are guarded behind
a use_size/use_pressure boolean anyway.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1095>
This commit is contained in:
Peter Hutterer 2024-12-16 11:59:47 +10:00 committed by Marge Bot
parent 52679e1296
commit eef0650759

View file

@ -406,6 +406,7 @@ tp_init_thumb(struct tp_dispatch *tp)
tp->thumb.detect_thumbs = true; tp->thumb.detect_thumbs = true;
tp->thumb.use_pressure = false; tp->thumb.use_pressure = false;
tp->thumb.pressure_threshold = INT_MAX; tp->thumb.pressure_threshold = INT_MAX;
tp->thumb.size_threshold = INT_MAX;
/* detect thumbs by pressure in the bottom 15mm, detect thumbs by /* detect thumbs by pressure in the bottom 15mm, detect thumbs by
* lingering in the bottom 8mm */ * lingering in the bottom 8mm */