x11: fix compilation if 'libwacom=false'

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1168


(cherry picked from commit a8f6cada88)
This commit is contained in:
Christian Rauch 2020-03-31 20:28:44 +00:00 committed by Florian Müllner
parent b0709504ea
commit 7baabc7ed0

View File

@ -122,9 +122,9 @@ meta_input_device_x11_is_grouped (ClutterInputDevice *device,
static void static void
meta_input_device_x11_finalize (GObject *object) meta_input_device_x11_finalize (GObject *object)
{ {
#ifdef HAVE_LIBWACOM
MetaInputDeviceX11 *device_xi2 = META_INPUT_DEVICE_X11 (object); MetaInputDeviceX11 *device_xi2 = META_INPUT_DEVICE_X11 (object);
#ifdef HAVE_LIBWACOM
if (device_xi2->group_modes) if (device_xi2->group_modes)
g_array_unref (device_xi2->group_modes); g_array_unref (device_xi2->group_modes);
#endif #endif