summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2012-02-23 19:05:13 (GMT)
committerBastien Nocera <hadess@hadess.net>2012-02-24 09:50:30 (GMT)
commit389276ef566342c3c61547326c070a0d6914622a (patch)
treeebaa85f5dfb0f1b11237ba13d838cc7c85b65228 /plugins/wacom/gsd-wacom-manager.c
parent1d1c460876ddf3c1d14f53904b0ec6397c2f58cf (diff)
downloadgnome-settings-daemon-389276ef566342c3c61547326c070a0d6914622a.zip
gnome-settings-daemon-389276ef566342c3c61547326c070a0d6914622a.tar.xz
wacom: Make touch devices insensitve to KEY_IS_ABSOLUTE changes
Pen devices are typically used in absolute mode, while touch devices are used in relative mode. However, the tracking mode of *both* currently depend on the value of KEY_IS_ABSOLUTE. If a preference is set for absolute or relative it will be applied to both devices. This patch has touch devices ignore changes to KEY_IS_ABSOLUTE. Ideally it would be nice to have this key available independently for both pen and touch devices at some point in the future. https://bugzilla.gnome.org/show_bug.cgi?id=670655
Diffstat (limited to 'plugins/wacom/gsd-wacom-manager.c')
-rw-r--r--plugins/wacom/gsd-wacom-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 05a83b9..250ea84 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -557,7 +557,8 @@ wacom_settings_changed (GSettings *settings,
set_tpcbutton (device, g_settings_get_boolean (settings, key));
} else if (g_str_equal (key, KEY_IS_ABSOLUTE)) {
if (type != WACOM_TYPE_CURSOR &&
- type != WACOM_TYPE_PAD)
+ type != WACOM_TYPE_PAD &&
+ type != WACOM_TYPE_TOUCH)
set_absolute (device, g_settings_get_boolean (settings, key));
} else if (g_str_equal (key, KEY_AREA)) {
if (type != WACOM_TYPE_CURSOR &&