test: check that the pressure offset is reduced during motion events too
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 13 Jun 2023 05:22:26 +0000 (15:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 14 Jun 2023 00:46:24 +0000 (10:46 +1000)
commit6f10f01af280b567e6b6d23ced6fefe0111e080e
tree00ac5ad802345c77e1ed96e1694725cb962e9d75
parent24cf215f54740a8e63cc5ec4d98494bb4a9b50f3
test: check that the pressure offset is reduced during motion events too

Ensure that if we do get pressure < offset that that offset is reduced
to the current pressure value.

The implementation for this is arguably buggy, reducing the pressure
means we get a tip up event since we now reach 0% of pressure. Arguably
we should enforce the tip staying down and releasing it later but since
this should typically never happen more than once per tool per context
and working around this is a lot of effort, we live with it.

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