fix unused variable click_methods

This variable is only used under certain (build-time) conditions,
so need needs to be defined/assigned under those.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/-/merge_requests/65>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-04-16 12:21:32 +02:00
committed by Marge Bot
parent 8a63e97e0c
commit c674db53d9

View File

@@ -831,7 +831,9 @@ LibinputApplyConfigClickMethod(DeviceIntPtr dev,
struct libinput_device *device)
{
InputInfoPtr pInfo = dev->public.devicePrivate;
#if HAVE_LIBINPUT_CLICKFINGER_BUTTON_MAP
uint32_t click_methods = libinput_device_config_click_get_methods(device);
#endif
if (!subdevice_has_capabilities(dev, CAP_POINTER))
return;