[gnome-settings-daemon] wacom: Only set "Wacom Hover Click" for styli
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Only set "Wacom Hover Click" for styli
- Date: Wed, 23 Nov 2011 20:00:19 +0000 (UTC)
commit 9df8ec792876679df119667ecedc59233a54c496
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 23 19:59:44 2011 +0000
wacom: Only set "Wacom Hover Click" for styli
And not for all the devices.
plugins/wacom/gsd-wacom-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 4a011bb..901db8b 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -309,7 +309,6 @@ set_wacom_settings (GsdWacomManager *manager,
settings = gsd_wacom_device_get_settings (device);
set_rotation (device, g_settings_get_enum (settings, KEY_ROTATION));
set_touch (device, g_settings_get_boolean (settings, KEY_TOUCH));
- set_tpcbutton (device, g_settings_get_boolean (settings, KEY_TPCBUTTON));
type = gsd_wacom_device_get_device_type (device);
@@ -333,6 +332,9 @@ set_wacom_settings (GsdWacomManager *manager,
return;
}
+ if (type == WACOM_TYPE_STYLUS)
+ set_tpcbutton (device, g_settings_get_boolean (settings, KEY_TPCBUTTON));
+
set_absolute (device, g_settings_get_boolean (settings, KEY_IS_ABSOLUTE));
set_area (device, g_settings_get_value (settings, KEY_AREA));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]