[gnome-settings-daemon] wacom: invert TPCButton setting.



commit 7775122dabed85f31f2ed33c135b922acd8d57db
Author: Peter Hutterer <peter hutterer who-t net>
Date:   Fri Aug 12 10:44:11 2011 +1000

    wacom: invert TPCButton setting.
    
    Wacom's TPCButton option which this setting emulates is to enable Tablet PC
    stylus behaviour when on. The property "Hover Click" works the other way
    round, i.e. if Hover Click is _enabled_ this is the equivalent of TPC
    behaviour _disabled_.
    
    Bug exposed by commit xf86-input-wacom-0.10.99.1-10-ge0354b9.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656372

 plugins/wacom/gsd-wacom-manager.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 5dd0b87..2965e97 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -406,7 +406,11 @@ set_touch (gboolean touch)
 static void
 set_tpcbutton (gboolean tpcbutton)
 {
-        gchar data = tpcbutton;
+        /* Wacom's TPCButton option which this setting emulates is to enable
+         * Tablet PC stylus behaviour when on. The property "Hover Click"
+         * works the other way round, i.e. if Hover Click is enabled this
+         * is the equivalent of TPC behaviour disabled. */
+        gchar data = tpcbutton ? 0 : 1;
         PropertyHelper property = {
                 .name = "Wacom Hover Click",
                 .nitems = 1,



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