diff options
author | Philippe Brochard <hocwp@free.fr> | 2013-06-04 10:16:57 +0200 |
---|---|---|
committer | Philippe Brochard <hocwp@free.fr> | 2013-06-04 10:16:57 +0200 |
commit | fb69d23fa01a3630e885bce177a1c8f6e8bbda03 (patch) | |
tree | 0353ac579b990c4ec7f2800c43c1d1b6b22ff5fd /keys.c | |
parent | ca91a58489e30e1579d88314d803cbc38259c1cd (diff) | |
download | xbindkeys-fb69d23fa01a3630e885bce177a1c8f6e8bbda03.tar.gz |
Fix a deprecated warning for XKeycodeToKeysym.v1.8.6
Diffstat (limited to 'keys.c')
-rw-r--r-- | keys.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -209,6 +209,7 @@ void print_key (Display * d, Keys_t * key) { char str[STR_KEY_LEN]; + int keysyms_per_keycode_return; if (verbose) { @@ -241,13 +242,8 @@ print_key (Display * d, Keys_t * key) str, str[0] ? " + " : "", key->event_type == PRESS ? "" : "Release + ", - (XKeysymToString - (XKeycodeToKeysym (d, key->key.code, 0)) != - NULL) ? XKeysymToString (XKeycodeToKeysym (d, - key->key. - code, - 0)) : - "NoSymbol"); + (XKeysymToString (*XGetKeyboardMapping(d, key->key.code, 1, &keysyms_per_keycode_return)) != NULL) ? + XKeysymToString (*XGetKeyboardMapping(d, key->key.code, 1, &keysyms_per_keycode_return)) : "NoSymbol"); } } } |