aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index c16cc5277e9..c64b2a6dd57 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2436,7 +2436,7 @@ read_decoded_event_from_main_queue (struct timespec *end_time,
2436#else 2436#else
2437 struct frame *frame = XFRAME (selected_frame); 2437 struct frame *frame = XFRAME (selected_frame);
2438 struct terminal *terminal = frame->terminal; 2438 struct terminal *terminal = frame->terminal;
2439 if (!((FRAME_TERMCAP_P (frame) || FRAME_MSDOS_P (frame)) 2439 if (!(is_tty_frame (frame)
2440 /* Don't apply decoding if we're just reading a raw event 2440 /* Don't apply decoding if we're just reading a raw event
2441 (e.g. reading bytes sent by the xterm to specify the position 2441 (e.g. reading bytes sent by the xterm to specify the position
2442 of a mouse click). */ 2442 of a mouse click). */
@@ -12982,7 +12982,7 @@ The elements of this list correspond to the arguments of
12982 12982
12983 Lisp_Object interrupt = interrupt_input ? Qt : Qnil; 12983 Lisp_Object interrupt = interrupt_input ? Qt : Qnil;
12984 Lisp_Object flow, meta; 12984 Lisp_Object flow, meta;
12985 if (FRAME_TERMCAP_P (sf) || FRAME_MSDOS_P (sf)) 12985 if (is_tty_frame (sf))
12986 { 12986 {
12987 flow = FRAME_TTY (sf)->flow_control ? Qt : Qnil; 12987 flow = FRAME_TTY (sf)->flow_control ? Qt : Qnil;
12988 meta = (FRAME_TTY (sf)->meta_key == 2 12988 meta = (FRAME_TTY (sf)->meta_key == 2