From 80ec1ba2ebdab91e5b34f8378f32c2a34fb93158 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 5 Mar 1993 23:56:13 +0000 Subject: [PATCH] (XTread_socket): Set bufp->modifiers for all kinds of keys. --- src/xterm.c | 4 ++-- 1 file 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) if (nbytes == 1) { - if (modifiers & x_meta_mod_mask) - *copy_buffer |= METABIT; bufp->kind = ascii_keystroke; XSET (bufp->code, Lisp_Int, *copy_buffer); XSET (bufp->frame_or_window, Lisp_Frame, f); + bufp->modifiers = x_convert_modifiers (modifiers); bufp->timestamp = event.xkey.time; bufp++; } @@ -2755,6 +2754,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) bufp->kind = ascii_keystroke; XSET (bufp->code, Lisp_Int, copy_buffer[i]); XSET (bufp->frame_or_window, Lisp_Frame, f); + bufp->modifiers = x_convert_modifiers (modifiers); bufp->timestamp = event.xkey.time; bufp++; }