mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 04:48:02 +02:00
cosmetic: convert evdev_need_touch_frame from int to bool
We use stdbool elsewhere, so use it here too for consistency. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9b9a6a75fa
commit
80356864e1
1 changed files with 5 additions and 5 deletions
10
src/evdev.c
10
src/evdev.c
|
|
@ -577,11 +577,11 @@ evdev_process_absolute(struct evdev_device *device,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline bool
|
||||||
evdev_need_touch_frame(struct evdev_device *device)
|
evdev_need_touch_frame(struct evdev_device *device)
|
||||||
{
|
{
|
||||||
if (!(device->seat_caps & EVDEV_DEVICE_TOUCH))
|
if (!(device->seat_caps & EVDEV_DEVICE_TOUCH))
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
switch (device->pending_event) {
|
switch (device->pending_event) {
|
||||||
case EVDEV_NONE:
|
case EVDEV_NONE:
|
||||||
|
|
@ -593,10 +593,10 @@ evdev_need_touch_frame(struct evdev_device *device)
|
||||||
case EVDEV_ABSOLUTE_TOUCH_DOWN:
|
case EVDEV_ABSOLUTE_TOUCH_DOWN:
|
||||||
case EVDEV_ABSOLUTE_TOUCH_UP:
|
case EVDEV_ABSOLUTE_TOUCH_UP:
|
||||||
case EVDEV_ABSOLUTE_MOTION:
|
case EVDEV_ABSOLUTE_MOTION:
|
||||||
return 1;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -626,7 +626,7 @@ fallback_process(struct evdev_dispatch *dispatch,
|
||||||
struct input_event *event,
|
struct input_event *event,
|
||||||
uint64_t time)
|
uint64_t time)
|
||||||
{
|
{
|
||||||
int need_frame = 0;
|
bool need_frame = false;
|
||||||
|
|
||||||
switch (event->type) {
|
switch (event->type) {
|
||||||
case EV_REL:
|
case EV_REL:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue