Signed-off-by: Peter Hutterer <[email protected]>
---
 test/touchpad.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/touchpad.c b/test/touchpad.c
index 329eeb3..875bc58 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -456,6 +456,7 @@ START_TEST(touchpad_4fg_clickfinger_btntool_3slots)
        struct libinput_event *event;
 
        if (libevdev_get_num_slots(dev->evdev) >= 4 ||
+           libevdev_get_num_slots(dev->evdev) < 3 ||
            !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP))
                return;
 
-- 
2.4.3

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to