projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc320c1
)
test: touchpads are too small for palm if we can't get the dimensions
author
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 21 Jul 2014 04:35:42 +0000
(14:35 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 21 Jul 2014 06:27:05 +0000
(16:27 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/touchpad.c
patch
|
blob
|
history
diff --git
a/test/touchpad.c
b/test/touchpad.c
index
c1bdbd5
..
9b232bf
100644
(file)
--- 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)