mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 04:18:01 +02: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,
|
struct evdev_device *device,
|
||||||
uint64_t time)
|
uint64_t time)
|
||||||
{
|
{
|
||||||
if (!(device->seat_caps & EVDEV_DEVICE_POINTER))
|
if (!libinput_device_has_capability(&device->base, LIBINPUT_DEVICE_CAP_POINTER))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!dispatch->wheel.emulate_hi_res_wheel &&
|
if (!dispatch->wheel.emulate_hi_res_wheel &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue