summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/xsetwacom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index b9b8a84..bbe25ea 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -1021,7 +1021,7 @@ static int special_map_button(Display *dpy, int argc, char **argv, unsigned long
need_press = need_release = 1;
if (sscanf(btn, "%d", &button) != 1)
- return nitems;
+ break;
TRACE("Button map %d [%s,%s]\n", abs(button),
@@ -1044,7 +1044,7 @@ static int special_map_button(Display *dpy, int argc, char **argv, unsigned long
}
*ndata += nitems;
- return nitems;
+ return i;
}
/* Return the first keycode to have the required keysym in the current group.