# HG changeset patch # User Richard M. Stallman # Date 743414692 0 # Node ID bc70363458c3401bc06903924563d6cc95abd274 # Parent 23fe7f6c9ae49ce071082d344aa55d4a9ab303cc (XTread_socket) [! HAVE_X11R5]: Check for XK_Mode_switch and XK_Num_Lock, if defined. diff -r 23fe7f6c9ae4 -r bc70363458c3 src/xterm.c --- a/src/xterm.c Fri Jul 23 07:59:08 1993 +0000 +++ b/src/xterm.c Fri Jul 23 08:04:52 1993 +0000 @@ -2940,7 +2940,16 @@ || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */ || x_is_vendor_fkey (orig_keysym)) - && ! IsModifierKey (orig_keysym)) /* wherever */ + && ! (IsModifierKey (orig_keysym) +#ifndef HAVE_X11R5 +#ifdef XK_Mode_switch + || ((unsigned)(orig_keysym) == XK_Mode_switch) +#endif +#ifdef XK_Num_Lock + || ((unsigned)(orig_keysym) == XK_Num_Lock) +#endif +#endif /* not HAVE_X11R5 */ + )) { if (temp_index == sizeof temp_buffer / sizeof (short)) temp_index = 0;