From 2461cdf497d2fb2a15f4b65dc89e67b0bc586b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Fri, 20 Jun 2025 12:13:16 +0200 Subject: [PATCH] wheel: Use libinput_device_has_capability() Use this helper instead of checking manually. Part-of: --- src/evdev-wheel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-wheel.c b/src/evdev-wheel.c index 8c91feff..6c396bef 100644 --- a/src/evdev-wheel.c +++ b/src/evdev-wheel.c @@ -392,7 +392,7 @@ fallback_wheel_handle_state(struct fallback_dispatch *dispatch, struct evdev_device *device, uint64_t time) { - if (!(device->seat_caps & EVDEV_DEVICE_POINTER)) + if (!libinput_device_has_capability(&device->base, LIBINPUT_DEVICE_CAP_POINTER)) return; if (!dispatch->wheel.emulate_hi_res_wheel &&