From aedf692e0ca10871af334af4180b1a4397415db9 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Sun, 3 May 2020 23:33:01 +0100 Subject: [PATCH] backends: move 'input_device' to HAVE_LIBWACOM scope https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1231 --- src/backends/meta-input-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/meta-input-device.c b/src/backends/meta-input-device.c index e05c024e3..24f6ef9ae 100644 --- a/src/backends/meta-input-device.c +++ b/src/backends/meta-input-device.c @@ -54,8 +54,8 @@ meta_input_device_init (MetaInputDevice *input_device) static void meta_input_device_constructed (GObject *object) { - MetaInputDevice *input_device = META_INPUT_DEVICE (object); #ifdef HAVE_LIBWACOM + MetaInputDevice *input_device; WacomDeviceDatabase *wacom_db; MetaInputDevicePrivate *priv; const char *node; @@ -64,6 +64,7 @@ meta_input_device_constructed (GObject *object) G_OBJECT_CLASS (meta_input_device_parent_class)->constructed (object); #ifdef HAVE_LIBWACOM + input_device = META_INPUT_DEVICE (object); priv = meta_input_device_get_instance_private (input_device); wacom_db = meta_backend_get_wacom_database (meta_get_backend ()); node = clutter_input_device_get_device_node (CLUTTER_INPUT_DEVICE (input_device));