tablet: split detecting and updating the pressure offset
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 13 Jun 2023 02:49:05 +0000 (12:49 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 23 Jun 2023 05:21:51 +0000 (05:21 +0000)
commiteea10aef4777efb5604add97dc79390268e0f29c
tree6854e3b2bd7b4f304da8506af8afd33eb26ba54b
parent71f5dc6e23e8d4638e8d76003654ac5d23f9c8b4
tablet: split detecting and updating the pressure offset

detect_pressure_offset() would previously update an existing offset but
otherwise skip most of the work for any event other than proximity-in
events. This was too hidden, let's split this into two functions - one
to update an existing offset and another one to detect a new offset.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-tablet.c