mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 02:20:13 +01:00
tablet: make evdev_reject_device return a bool
Because that's how we use it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
717b57b6a2
commit
cb02eca996
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue