wheel: Use libinput_device_has_capability()

Use this helper instead of checking manually.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1241>
This commit is contained in:
José Expósito 2025-06-20 12:13:16 +02:00 committed by Marge Bot
parent 35598db1ce
commit 2461cdf497

View file

@ -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 &&