diff options
| author | Richard M. Stallman | 1993-07-23 08:04:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-23 08:04:52 +0000 |
| commit | 7719aa0601889b633c6581059945c4d74fd81537 (patch) | |
| tree | d349dc5030c45437ae1d2339fcc0419d3ea4d626 /src | |
| parent | ddd931ff513c3663b879621991480673916ae933 (diff) | |
| download | emacs-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.c | 11 |
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; |