aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-23 08:04:52 +0000
committerRichard M. Stallman1993-07-23 08:04:52 +0000
commit7719aa0601889b633c6581059945c4d74fd81537 (patch)
treed349dc5030c45437ae1d2339fcc0419d3ea4d626 /src
parentddd931ff513c3663b879621991480673916ae933 (diff)
downloademacs-7719aa0601889b633c6581059945c4d74fd81537.tar.gz
emacs-7719aa0601889b633c6581059945c4d74fd81537.zip
(XTread_socket) [! HAVE_X11R5]:
Check for XK_Mode_switch and XK_Num_Lock, if defined.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index cbf30e3641c..dbfd6d1ab99 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2940,7 +2940,16 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
2940 || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ 2940 || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */
2941 || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */ 2941 || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */
2942 || x_is_vendor_fkey (orig_keysym)) 2942 || x_is_vendor_fkey (orig_keysym))
2943 && ! IsModifierKey (orig_keysym)) /* wherever */ 2943 && ! (IsModifierKey (orig_keysym)
2944#ifndef HAVE_X11R5
2945#ifdef XK_Mode_switch
2946 || ((unsigned)(orig_keysym) == XK_Mode_switch)
2947#endif
2948#ifdef XK_Num_Lock
2949 || ((unsigned)(orig_keysym) == XK_Num_Lock)
2950#endif
2951#endif /* not HAVE_X11R5 */
2952 ))
2944 { 2953 {
2945 if (temp_index == sizeof temp_buffer / sizeof (short)) 2954 if (temp_index == sizeof temp_buffer / sizeof (short))
2946 temp_index = 0; 2955 temp_index = 0;