use Button<num> instead of just <num> for specifying buttons by number
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
plugins/mouse/translate.c
→
plugins/mouse/translate.c
@@ -50,7 +50,7 @@ else if (!g_ascii_strcasecmp("Middle", l)) *button = 2;
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;