plugin/wheel: Use libinput_device_is_virtual()

Use this function instead of evdev_device_is_virtual().

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1313>
This commit is contained in:
José Expósito 2025-09-02 10:59:31 +02:00
parent 60bcbb6c88
commit a0a6ff2777

View file

@ -35,6 +35,7 @@
#include "libinput-log.h"
#include "libinput-plugin-mouse-wheel.h"
#include "libinput-plugin.h"
#include "libinput-private.h"
#include "libinput-util.h"
#define ACC_V120_TRIGGER_THRESHOLD 30 /* 1/4 of a wheel detent */
@ -459,8 +460,7 @@ wheel_plugin_device_create(struct libinput_plugin *libinput_plugin,
struct plugin_data *plugin,
struct libinput_device *device)
{
struct evdev_device *evdev = evdev_device(device);
if (evdev_device_is_virtual(evdev))
if (libinput_device_is_virtual(device))
return NULL;
struct plugin_device *pd = zalloc(sizeof(*pd));