diff options
author | simonb <simonb> | 2006-06-25 14:00:13 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-06-25 14:00:13 (GMT) |
commit | 131d04cf423b36bcfeba351eecc520b94586f729 (patch) | |
tree | 9139ba7e9b059d052cadcb30b48b98edf03d585a /src/FbTk | |
parent | 80389b5dd5e7be4025cafbb2e7b055fd06f4f56d (diff) | |
download | fluxbox_lack-131d04cf423b36bcfeba351eecc520b94586f729.zip fluxbox_lack-131d04cf423b36bcfeba351eecc520b94586f729.tar.bz2 |
Check for NoSymbol more explicitly - thanks Julien Trolet (dmxen at
sourceforge)
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/KeyUtil.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc index cb0db93..4300cd7 100644 --- a/src/FbTk/KeyUtil.cc +++ b/src/FbTk/KeyUtil.cc | |||
@@ -172,8 +172,10 @@ void KeyUtil::grabKey(unsigned int key, unsigned int mod) { | |||
172 | unsigned int KeyUtil::getKey(const char *keystr) { | 172 | unsigned int KeyUtil::getKey(const char *keystr) { |
173 | if (!keystr) | 173 | if (!keystr) |
174 | return 0; | 174 | return 0; |
175 | return XKeysymToKeycode(App::instance()->display(), | 175 | KeySym sym = XStringToKeysym(keystr); |
176 | XStringToKeysym(keystr)); | 176 | if (sym==NoSymbol) |
177 | return 0; | ||
178 | return XKeysymToKeycode(App::instance()->display(), sym); | ||
177 | } | 179 | } |
178 | 180 | ||
179 | 181 | ||