From bd23d0f35872f5d36b7b53432fd3ecfc4390a69e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 30 Apr 2018 10:40:45 +1000 Subject: [PATCH libinput] util: allow for palm pressure > 255 https://bugs.freedesktop.org/show_bug.cgi?id=105753 Signed-off-by: Peter Hutterer --- src/libinput-util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libinput-util.c b/src/libinput-util.c index 93d73827..e774fb78 100644 --- a/src/libinput-util.c +++ b/src/libinput-util.c @@ -425,9 +425,7 @@ parse_palm_pressure_property(const char *prop) if (!prop) return 0; - if (!safe_atoi(prop, &threshold) || - threshold < 0 || - threshold > 255) /* No touchpad device has pressure > 255 */ + if (!safe_atoi(prop, &threshold) || threshold < 0) return 0; return threshold; -- 2.14.3