We use stdbool elsewhere, so use it here too for consistency.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
}
}
-static inline int
+static inline bool
evdev_need_touch_frame(struct evdev_device *device)
{
if (!(device->seat_caps & EVDEV_DEVICE_TOUCH))
- return 0;
+ return false;
switch (device->pending_event) {
case EVDEV_NONE:
case EVDEV_ABSOLUTE_TOUCH_DOWN:
case EVDEV_ABSOLUTE_TOUCH_UP:
case EVDEV_ABSOLUTE_MOTION:
- return 1;
+ return true;
}
- return 0;
+ return false;
}
static void
struct input_event *event,
uint64_t time)
{
- int need_frame = 0;
+ bool need_frame = false;
switch (event->type) {
case EV_REL: