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:
dffe960
)
check for invalid keys properly
author
Dana Jansens
<danakj@orodu.net>
Wed, 26 Mar 2003 13:25:21 +0000
(13:25 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 26 Mar 2003 13:25:21 +0000
(13:25 +0000)
plugins/keyboard/translate.c
patch
|
blob
|
history
diff --git
a/plugins/keyboard/translate.c
b/plugins/keyboard/translate.c
index d1fdc58d2eaa7e9b125df6b51aebf6e4eb8ab590..25e1c6a6a0e388819ca117f4b88894537bd0977f 100644
(file)
--- a/
plugins/keyboard/translate.c
+++ b/
plugins/keyboard/translate.c
@@
-51,7
+51,7
@@
gboolean translate_key(char *str, guint *state, guint *keycode)
goto translation_fail;
}
*keycode = XKeysymToKeycode(ob_display, sym);
- if (!keycode) {
+ if (!
*
keycode) {
g_warning("Key '%s' does not exist on the display.", l);
goto translation_fail;
}