[gnome-settings-daemon] wacom: Fix touchring button mapping



commit af1aa4ec40b47075e50b6015ef78ae5565da70cc
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 24 17:12:37 2012 +0100

    wacom: Fix touchring button mapping
    
    Not sure why this didn't work as expected, possibly a change
    of behaviour with the newest Wacom driver.

 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 3faafed..a1ab0a8 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -417,7 +417,8 @@ reset_touch_buttons (XDevice               *xdev,
 		Atom prop;
 		int mapped_button = buttons[i].num;
 
-		action[0] = AC_BUTTON | mapped_button;
+		action[0] = AC_BUTTON | AC_KEYBTNPRESS | mapped_button;
+		action[1] = AC_BUTTON | mapped_button;
 
 		propname = g_strdup_printf ("Button %s action", buttons[i].button);
 		prop = XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), propname, False);



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