diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-10-19 12:14:47 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-10-19 13:28:42 +1000 |
commit | f061027dbbcab54007fc39c8948b03af10fd9557 (patch) | |
tree | 739b640e9ccca81b8cd25e06a3d0acb8073fb11e | |
parent | 28ef7456d3f219f6e4a7e655c78b9c547b8e16d1 (diff) |
touchpad: cut down on excessive logging for palm size
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev-mt-touchpad.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 61d4474a..81a56a05 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -799,8 +799,9 @@ tp_palm_detect_touch_size_triggered(struct tp_dispatch *tp, if (t->major > tp->palm.size_threshold || t->minor > tp->palm.size_threshold) { - evdev_log_debug(tp->device, - "palm: touch size exceeded\n"); + if (t->palm.state != PALM_TOUCH_SIZE) + evdev_log_debug(tp->device, + "palm: touch size exceeded\n"); t->palm.state = PALM_TOUCH_SIZE; return true; } |