diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-07-21 14:35:42 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-07-21 16:27:05 +1000 |
commit | f179c70bb5b97185997d68ec373f74ded576f836 (patch) | |
tree | e43afbccb9185d54f8b5925bf3e37c6abe4e8fb7 | |
parent | fc320c1dd17d636a83849008eb12a6dcc101cbcd (diff) | |
download | libinput-f179c70bb5b97185997d68ec373f74ded576f836.tar.gz |
test: touchpads are too small for palm if we can't get the dimensions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | test/touchpad.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/touchpad.c b/test/touchpad.c index c1bdbd53..9b232bf4 100644 --- a/test/touchpad.c +++ b/test/touchpad.c @@ -1245,10 +1245,11 @@ static int touchpad_has_palm_detect_size(struct litest_device *dev) { double width, height; + int rc; - libinput_device_get_size(dev->libinput_device, &width, &height); + rc = libinput_device_get_size(dev->libinput_device, &width, &height); - return width >= 80; + return rc == 0 && width >= 80; } START_TEST(touchpad_palm_detect_at_edge) |