test: make the touchpad size the only check for thumb detection
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 10 Jul 2019 02:45:46 +0000 (12:45 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Jul 2019 03:08:47 +0000 (13:08 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-touchpad.c

index 9ce9456..32d4fb3 100644 (file)
@@ -5000,9 +5000,6 @@ has_thumb_detect(struct litest_device *dev)
 {
        double w, h;
 
-       if (!libevdev_has_event_code(dev->evdev, EV_ABS, ABS_MT_PRESSURE))
-               return 0;
-
        if (libinput_device_get_size(dev->libinput_device, &w, &h) != 0)
                return 0;