diff options
| author | Richard M. Stallman | 1993-03-05 23:56:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-03-05 23:56:13 +0000 |
| commit | 80ec1ba2ebdab91e5b34f8378f32c2a34fb93158 (patch) | |
| tree | da5be82fb268259e7c5649732ce5e30622574706 /src | |
| parent | ba8810f92acb0df8645d79ae682c6ee0e6c7f7f2 (diff) | |
| download | emacs-80ec1ba2ebdab91e5b34f8378f32c2a34fb93158.tar.gz emacs-80ec1ba2ebdab91e5b34f8378f32c2a34fb93158.zip | |
(XTread_socket): Set bufp->modifiers for all kinds of keys.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index b4f1040afb8..14a8af82907 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2741,11 +2741,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 2741 | 2741 | ||
| 2742 | if (nbytes == 1) | 2742 | if (nbytes == 1) |
| 2743 | { | 2743 | { |
| 2744 | if (modifiers & x_meta_mod_mask) | ||
| 2745 | *copy_buffer |= METABIT; | ||
| 2746 | bufp->kind = ascii_keystroke; | 2744 | bufp->kind = ascii_keystroke; |
| 2747 | XSET (bufp->code, Lisp_Int, *copy_buffer); | 2745 | XSET (bufp->code, Lisp_Int, *copy_buffer); |
| 2748 | XSET (bufp->frame_or_window, Lisp_Frame, f); | 2746 | XSET (bufp->frame_or_window, Lisp_Frame, f); |
| 2747 | bufp->modifiers = x_convert_modifiers (modifiers); | ||
| 2749 | bufp->timestamp = event.xkey.time; | 2748 | bufp->timestamp = event.xkey.time; |
| 2750 | bufp++; | 2749 | bufp++; |
| 2751 | } | 2750 | } |
| @@ -2755,6 +2754,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 2755 | bufp->kind = ascii_keystroke; | 2754 | bufp->kind = ascii_keystroke; |
| 2756 | XSET (bufp->code, Lisp_Int, copy_buffer[i]); | 2755 | XSET (bufp->code, Lisp_Int, copy_buffer[i]); |
| 2757 | XSET (bufp->frame_or_window, Lisp_Frame, f); | 2756 | XSET (bufp->frame_or_window, Lisp_Frame, f); |
| 2757 | bufp->modifiers = x_convert_modifiers (modifiers); | ||
| 2758 | bufp->timestamp = event.xkey.time; | 2758 | bufp->timestamp = event.xkey.time; |
| 2759 | bufp++; | 2759 | bufp++; |
| 2760 | } | 2760 | } |