1
0
Fork 0

Fix build when libwacom is disabled

Fixes: da828c2fc ("x11/input-device: Stop using deprecated libwacom API")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3996>
This commit is contained in:
nibon7 2024-09-02 17:01:14 +08:00
parent be8e1ee96a
commit 148ab84b83

View file

@ -195,6 +195,7 @@ meta_input_device_x11_get_property (GObject *object,
} }
} }
#ifdef HAVE_LIBWACOM
#ifndef HAVE_LIBWACOM_GET_NUM_RINGS #ifndef HAVE_LIBWACOM_GET_NUM_RINGS
static int static int
libwacom_get_num_rings (WacomDevice *device) libwacom_get_num_rings (WacomDevice *device)
@ -208,6 +209,7 @@ libwacom_get_num_rings (WacomDevice *device)
return 0; return 0;
} }
#endif #endif
#endif
static int static int
meta_input_device_x11_get_group_n_modes (ClutterInputDevice *device, meta_input_device_x11_get_group_n_modes (ClutterInputDevice *device,