Commit cb02eca9 authored by Peter Hutterer's avatar Peter Hutterer

tablet: make evdev_reject_device return a bool

Because that's how we use it.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 717b57b6
......@@ -2030,7 +2030,7 @@ tablet_init_left_handed(struct evdev_device *device)
tablet_change_to_left_handed);
}
static int
static bool
tablet_reject_device(struct evdev_device *device)
{
struct libevdev *evdev = device->evdev;
......@@ -2044,7 +2044,7 @@ tablet_reject_device(struct evdev_device *device)
has_size = evdev_device_get_size(device, &w, &h) == 0;
if (has_xy && (has_pen || has_btn_stylus) && has_size)
return 0;
return false;
evdev_log_bug_libinput(device,
"missing tablet capabilities:%s%s%s%s. "
......@@ -2053,7 +2053,7 @@ tablet_reject_device(struct evdev_device *device)
has_pen ? "" : " pen",
has_btn_stylus ? "" : " btn-stylus",
has_size ? "" : " resolution");
return -1;
return true;
}
static int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment