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 <peter.hutterer@who-t.net>
This commit is contained in:
Ronald Tschalär 2017-08-04 14:38:38 -07:00 committed by Peter Hutterer
parent f35e25c44b
commit a915cbdbae

View file

@ -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;