]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket) [! HAVE_X11R5]:
authorRichard M. Stallman <rms@gnu.org>
Fri, 23 Jul 1993 08:04:52 +0000 (08:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 23 Jul 1993 08:04:52 +0000 (08:04 +0000)
Check for XK_Mode_switch and XK_Num_Lock, if defined.

src/xterm.c

index cbf30e3641cc375ddd6dfe15f21da412b4d10eb6..dbfd6d1ab99d36e1f12e8dd7ab2e609cb9c27330 100644 (file)
@@ -2940,7 +2940,16 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
                       || 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;