diff options
| -rw-r--r-- | src/xterm.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/xterm.c b/src/xterm.c index 3f8293254d4..598e56c7a87 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1919,22 +1919,6 @@ x_emacs_to_x_modifiers (state) | |||
| 1919 | | ((state & ctrl_modifier) ? ControlMask : 0) | 1919 | | ((state & ctrl_modifier) ? ControlMask : 0) |
| 1920 | | ((state & meta_modifier) ? x_meta_mod_mask : 0)); | 1920 | | ((state & meta_modifier) ? x_meta_mod_mask : 0)); |
| 1921 | } | 1921 | } |
| 1922 | |||
| 1923 | /* Return true iff KEYSYM is a vendor-specific keysym that we should | ||
| 1924 | return as a function key. If you add a keysym to this, you should | ||
| 1925 | make sure that the tables make_lispy_event uses contain a suitable | ||
| 1926 | name for it. */ | ||
| 1927 | static int | ||
| 1928 | x_is_vendor_fkey (sym) | ||
| 1929 | KeySym sym; | ||
| 1930 | { | ||
| 1931 | return 0 | ||
| 1932 | #ifdef DXK_Remove | ||
| 1933 | || (sym == DXK_Remove) | ||
| 1934 | #endif | ||
| 1935 | ; | ||
| 1936 | } | ||
| 1937 | |||
| 1938 | 1922 | ||
| 1939 | /* Mouse clicks and mouse movement. Rah. */ | 1923 | /* Mouse clicks and mouse movement. Rah. */ |
| 1940 | #ifdef HAVE_X11 | 1924 | #ifdef HAVE_X11 |
| @@ -3755,11 +3739,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3755 | XLookupString (&event.xkey, copy_buffer, 80, &keysym, | 3739 | XLookupString (&event.xkey, copy_buffer, 80, &keysym, |
| 3756 | &compose_status); | 3740 | &compose_status); |
| 3757 | 3741 | ||
| 3758 | /* Strip off the vendor-specific keysym bit, and take a shot | ||
| 3759 | at recognizing the codes. HP servers have extra keysyms | ||
| 3760 | that fit into the MiscFunctionKey category. */ | ||
| 3761 | orig_keysym = keysym; | 3742 | orig_keysym = keysym; |
| 3762 | keysym &= ~(1<<28); | ||
| 3763 | 3743 | ||
| 3764 | if (numchars > 1) | 3744 | if (numchars > 1) |
| 3765 | { | 3745 | { |
| @@ -3816,7 +3796,8 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3816 | #endif | 3796 | #endif |
| 3817 | || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ | 3797 | || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ |
| 3818 | || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */ | 3798 | || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */ |
| 3819 | || x_is_vendor_fkey (orig_keysym)) | 3799 | /* Any "vendor-specific" key is ok. */ |
| 3800 | || (orig_keysym & (1 << 28))) | ||
| 3820 | && ! (IsModifierKey (orig_keysym) | 3801 | && ! (IsModifierKey (orig_keysym) |
| 3821 | #ifndef HAVE_X11R5 | 3802 | #ifndef HAVE_X11R5 |
| 3822 | #ifdef XK_Mode_switch | 3803 | #ifdef XK_Mode_switch |