[gnome-settings-daemon] wacom: do not rotate pad devices



commit ce13778b2b62e1a609c8c47d44b04f11d97032e9
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Thu Jun 28 18:41:25 2012 +0200

    wacom: do not rotate pad devices
    
    as the rotation property is to be removed on pad devices
    in the driver.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679077

 plugins/wacom/gsd-wacom-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index e7f3b17..3619adf 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -711,7 +711,8 @@ wacom_settings_changed (GSettings      *settings,
 	type = gsd_wacom_device_get_device_type (device);
 
 	if (g_str_equal (key, KEY_ROTATION)) {
-		set_rotation (device, g_settings_get_enum (settings, key));
+	        if (type != WACOM_TYPE_PAD)
+		        set_rotation (device, g_settings_get_enum (settings, key));
 	} else if (g_str_equal (key, KEY_TOUCH)) {
 		set_touch (device, g_settings_get_boolean (settings, key));
 	} else if (g_str_equal (key, KEY_TPCBUTTON)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]