[PATCH libinput 08/11] test: make sure touch up resets pressure

Peter Hutterer peter.hutterer at who-t.net
Mon Jan 30 00:58:44 UTC 2017


Should be overridden by the test devices where something more fine-grained is
needed.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/litest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/litest.c b/test/litest.c
index 42d97d6..c1177b8 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -1583,6 +1583,7 @@ touch_up(struct litest_device *d, unsigned int slot)
 	struct input_event up[] = {
 		{ .type = EV_ABS, .code = ABS_MT_SLOT, .value = LITEST_AUTO_ASSIGN },
 		{ .type = EV_ABS, .code = ABS_MT_TRACKING_ID, .value = -1 },
+		{ .type = EV_ABS, .code = ABS_MT_PRESSURE, .value = 0 },
 		{ .type = EV_SYN, .code = SYN_REPORT, .value = 0 },
 		{ .type = -1, .code = -1 }
 	};
-- 
2.9.3



More information about the wayland-devel mailing list