projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
038e611
)
use Button<num> instead of just <num> for specifying buttons by number
author
Dana Jansens
<danakj@orodu.net>
Sat, 5 Apr 2003 17:23:23 +0000
(17:23 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 5 Apr 2003 17:23:23 +0000
(17:23 +0000)
plugins/mouse/translate.c
patch
|
blob
|
history
diff --git
a/plugins/mouse/translate.c
b/plugins/mouse/translate.c
index c73235958126ac9ab86230d3ce5434a7f6357a24..9f042dd9991c5f50f505263783dd7f25dee6858d 100644
(file)
--- 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;