From b8d2fd162ae30cb18519625179f2a64743ea72ee Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 5 Apr 2019 14:24:47 +1000 Subject: [PATCH] test: fix the hid4800 device's prox out serial number The test device sent a serial of 0. That would end up creating a new tool in libinput which is wrong. Let's hope this was just an error in creating the test device, if the device really sends that sequence, we're in trouble. Signed-off-by: Peter Hutterer --- test/litest-device-wacom-hid4800-pen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest-device-wacom-hid4800-pen.c b/test/litest-device-wacom-hid4800-pen.c index 0a65919b..3f424851 100644 --- a/test/litest-device-wacom-hid4800-pen.c +++ b/test/litest-device-wacom-hid4800-pen.c @@ -39,7 +39,7 @@ static struct input_event proximity_in[] = { static struct input_event proximity_out[] = { { .type = EV_ABS, .code = ABS_X, .value = 0 }, { .type = EV_ABS, .code = ABS_Y, .value = 0 }, - { .type = EV_MSC, .code = MSC_SERIAL, .value = 0 }, + { .type = EV_MSC, .code = MSC_SERIAL, .value = 297797542 }, { .type = EV_KEY, .code = BTN_TOOL_PEN, .value = 0 }, { .type = EV_SYN, .code = SYN_REPORT, .value = 0 }, { .type = -1, .code = -1 },