diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-05 17:23:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-05 17:23:23 +0000 |
| commit | 50fba4bca88de356ea1f3cdf218eae6ecd6dd662 (patch) | |
| tree | bb446b389d1201571288e57274b8a7ee5b168578 | |
| parent | 038e61197479865d15cb6ef686e80e47bf2fd843 (diff) | |
use Button<num> instead of just <num> for specifying buttons by number
| -rw-r--r-- | plugins/mouse/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
