]> git.eshelyaron.com Git - emacs.git/commitdiff
Include keyboard.h.
authorRichard M. Stallman <rms@gnu.org>
Sun, 28 Aug 1994 19:57:51 +0000 (19:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 28 Aug 1994 19:57:51 +0000 (19:57 +0000)
(x_make_frame_visible): Fix previous change: test polling_for_input
instead of whether SIGIO is defined.

src/xterm.c

index 73515ff31742e203b1ef25187749dc54c3c4fbe6..d497c302eacaeab7b7173c9f26ad518f7a2fb961 100644 (file)
@@ -79,6 +79,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #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 @@ x_make_frame_visible (f)
           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);
   }