Mercurial > emacs
changeset 8652:c2c1a477ddd5
Include keyboard.h.
(x_make_frame_visible): Fix previous change: test polling_for_input
instead of whether SIGIO is defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 28 Aug 1994 19:57:51 +0000 |
parents | f8249d9f509d |
children | 07cc798f5cab |
files | src/xterm.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Sun Aug 28 07:39:12 1994 +0000 +++ b/src/xterm.c Sun Aug 28 19:57:51 1994 +0000 @@ -79,6 +79,7 @@ #include "disptab.h" #include "buffer.h" #include "window.h" +#include "keyboard.h" #ifdef USE_X_TOOLKIT extern XtAppContext Xt_app_con; @@ -5677,12 +5678,13 @@ to let the handler know that there's something to be read. We used to raise a real alarm, but it seems that the handler isn't always enabled here. This is probably a bug. */ -#ifndef SIGIO - /* It could be confusing if a real alarm arrives while processing - the fake one. Turn it off and let the handler reset it. */ - alarm (0); - input_poll_signal (); -#endif + if (polling_for_input) + { + /* It could be confusing if a real alarm arrives while processing + the fake one. Turn it off and let the handler reset it. */ + alarm (0); + input_poll_signal (); + } } FRAME_SAMPLE_VISIBILITY (f); }