mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 21:00:06 +01:00
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:
parent
35598db1ce
commit
2461cdf497
1 changed files with 1 additions and 1 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue