From: Chris Bagwell <[email protected]>

For button-to-button mappings, the last button was
rejected.  This may be only now seen because we used
to pad button # counts in driver and thats recently
been cleaned up.

Signed-off-by: Chris Bagwell <[email protected]>
Reviewed-by: Peter Hutterer <[email protected]>
---
Split this simple fix into its own patch at Peter's request.

 tools/xsetwacom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 26d822f..e2a7d0b 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -1438,7 +1438,7 @@ static void map_button_simple(Display *dpy, XDevice *dev, 
param_t* param, int bu
                return;
 
        nmap = XGetDeviceButtonMapping(dpy, dev, map, nmap);
-       if (btn_no >= nmap)
+       if (btn_no > nmap)
        {
                fprintf(stderr, "Button number does not exist on device.\n");
                return;
-- 
1.7.3.4


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to