Mercurial > emacs
changeset 2127:adaf588e32a6
* xterm.c (x_find_modifier_meanings): XDisplayKeycodes only
appeared in X11R4; for earlier versions, just access the members
of the Display directly.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 11 Mar 1993 07:19:36 +0000 |
parents | 616aeb5c1432 |
children | 28d83027277f |
files | src/xterm.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Thu Mar 11 07:18:48 1993 +0000 +++ b/src/xterm.c Thu Mar 11 07:19:36 1993 +0000 @@ -1403,7 +1403,13 @@ x_super_mod_mask = 0; x_hyper_mod_mask = 0; +#ifdef HAVE_X11R4 XDisplayKeycodes (x_current_display, &min_code, &max_code); +#else + min_code = x_current_display->min_keycode; + max_code = x_current_display->max_keycode; +#endif + syms = XGetKeyboardMapping (x_current_display, min_code, max_code - min_code + 1, &syms_per_code);