diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-09-24 21:40:58 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-09-24 21:40:58 +0300 |
commit | aa36c6d0c478a756cc0a9aca796cbf431be773ee (patch) | |
tree | 5ec6f1130d0e3f739cbd7108efd382e51657689f /src/keyboard.c | |
parent | f34729eaec648d9784e68cf407b3ca94b19e3b70 (diff) | |
download | emacs-aa36c6d0c478a756cc0a9aca796cbf431be773ee.tar.gz |
Fix crash in GUI mode and enable TTY mouse on Windows.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 9faa3770cf3..fad04920e2e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3905,13 +3905,17 @@ kbd_buffer_get_event (KBOARD **kbp, else { bool do_display = true; - struct tty_display_info *tty = CURTTY (); - /* When this TTY is displaying a menu, we must prevent any - redisplay, because we modify the frame's glyph matrix - behind the back of the display engine. */ - if (tty->showing_menu) - do_display = false; + if (FRAME_TERMCAP_P (SELECTED_FRAME ())) + { + struct tty_display_info *tty = CURTTY (); + + /* When this TTY is displaying a menu, we must prevent + any redisplay, because we modify the frame's glyph + matrix behind the back of the display engine. */ + if (tty->showing_menu) + do_display = false; + } wait_reading_process_output (0, 0, -1, do_display, Qnil, NULL, 0); } |