mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 02:50:06 +01:00
test: touchpads are too small for palm if we can't get the dimensions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fc320c1dd1
commit
f179c70bb5
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue