From a915cbdbaed53d5a5baa637e3f92b210128abf8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronald=20Tschal=C3=A4r?= Date: Fri, 4 Aug 2017 14:38:38 -0700 Subject: [PATCH] touchpad: Allow larger palm sizes. On MBP13,3 the touch areas are quite large, and a thumb size easily gets to 1000+. Hence need to be able to set palm sizes > 1024 (using 1200 currently). Signed-off-by: Peter Hutterer --- src/libinput-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput-util.c b/src/libinput-util.c index c7cb2b48..48cb7181 100644 --- a/src/libinput-util.c +++ b/src/libinput-util.c @@ -450,7 +450,7 @@ parse_palm_size_property(const char *prop) if (!prop) return 0; - if (!safe_atoi(prop, &thr) || thr < 0 || thr > 1024) + if (!safe_atoi(prop, &thr) || thr < 0 || thr > 2028) return 0; return thr;