summaryrefslogtreecommitdiff
path: root/src/backends/x11/meta-input-settings-x11.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-06-30 12:19:25 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-07-12 23:43:23 +0200
commit10b30eaba5e215efbcc07ae3b7660fa934381661 (patch)
treec6d18ea4ee39834e06c82a09f849ffcfbc8b41f1 /src/backends/x11/meta-input-settings-x11.c
parent328e3f8f4fd4a384f500e1ea0e4e6b165a899e21 (diff)
downloadmutter-10b30eaba5e215efbcc07ae3b7660fa934381661.tar.gz
backend: Set mapping-mode on X11 pen/eraser devices
And use it in the generic code for the checks about whether mapping to an specific display applies or not. https://bugzilla.gnome.org/show_bug.cgi?id=784402
Diffstat (limited to 'src/backends/x11/meta-input-settings-x11.c')
-rw-r--r--src/backends/x11/meta-input-settings-x11.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backends/x11/meta-input-settings-x11.c b/src/backends/x11/meta-input-settings-x11.c
index 894e4bb9e..636f98a7a 100644
--- a/src/backends/x11/meta-input-settings-x11.c
+++ b/src/backends/x11/meta-input-settings-x11.c
@@ -551,6 +551,15 @@ meta_input_settings_x11_set_tablet_mapping (MetaInputSettings *settings,
g_warning ("Could not set tablet mapping for %s",
clutter_input_device_get_device_name (device));
}
+ else
+ {
+ ClutterInputDeviceMapping dev_mapping;
+
+ dev_mapping = (mapping == G_DESKTOP_TABLET_MAPPING_ABSOLUTE) ?
+ CLUTTER_INPUT_DEVICE_MAPPING_ABSOLUTE :
+ CLUTTER_INPUT_DEVICE_MAPPING_RELATIVE;
+ clutter_input_device_set_mapping_mode (device, dev_mapping);
+ }
}
static gboolean