diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-09-17 11:38:38 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-09-17 11:38:38 +0200 |
commit | 34c7b3ba62517e204e13a6a0527dcc6599170182 (patch) | |
tree | 01bf1ec1a2da347a3ba954b8e4cded22ba5206f5 | |
parent | 98fe6c24afa830d9707b0c8e8c41b93fb75845a4 (diff) | |
download | ratpoison-34c7b3ba62517e204e13a6a0527dcc6599170182.zip |
Comment on why XKeycodeToKeysym is still needed.
Prodded by Jeff Abrahamson.
-rw-r--r-- | src/input.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c index 2bd4f14..9bc0347 100644 --- a/src/input.c +++ b/src/input.c @@ -109,6 +109,13 @@ init_xkb (void) KeySym keycode_to_keysym(Display *dpy, KeyCode kc, int group, int level) { + /* + * XKeycodeToKeysym has been deprecated upstream, however we still use + * it since XKB may not be available at build time or and not + * functional at runtime. The problems in XKeycodeToKeysym don't seem + * to matter in the ratpoison case anyway. + * https://bugs.freedesktop.org/show_bug.cgi?id=5349 + */ #if defined (WANT_XKB) && defined (HAVE_X11_XKBLIB_H) && defined (HAVE_XKBKEYCODETOKEYSYM) if (use_xkb) return XkbKeycodeToKeysym (dpy, kc, group, level); |