summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-07-21 14:35:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-07-21 16:27:05 +1000
commitf179c70bb5b97185997d68ec373f74ded576f836 (patch)
treee43afbccb9185d54f8b5925bf3e37c6abe4e8fb7
parentfc320c1dd17d636a83849008eb12a6dcc101cbcd (diff)
downloadlibinput-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.c5
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)