From 50fba4bca88de356ea1f3cdf218eae6ecd6dd662 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 5 Apr 2003 17:23:23 +0000 Subject: [PATCH] use Button instead of just for specifying buttons by number --- plugins/mouse/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mouse/translate.c b/plugins/mouse/translate.c index c7323595..9f042dd9 100644 --- a/plugins/mouse/translate.c +++ b/plugins/mouse/translate.c @@ -50,7 +50,7 @@ gboolean translate_button(char *str, guint *state, guint *button) else if (!g_ascii_strcasecmp("Right", l)) *button = 3; else if (!g_ascii_strcasecmp("Up", l)) *button = 4; else if (!g_ascii_strcasecmp("Down", l)) *button = 5; - else *button = atoi(l); + else if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6); if (!*button) { g_warning("Invalid button '%s' in pointer binding.", l); goto translation_fail; -- 2.39.2