Commit 3b2fa4e6 authored by Richard M. Stallman's avatar Richard M. Stallman

Include keyboard.h.

(x_make_frame_visible): Fix previous change: test polling_for_input
instead of whether SIGIO is defined.
parent 03b78673
...@@ -79,6 +79,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -79,6 +79,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "disptab.h" #include "disptab.h"
#include "buffer.h" #include "buffer.h"
#include "window.h" #include "window.h"
#include "keyboard.h"
#ifdef USE_X_TOOLKIT #ifdef USE_X_TOOLKIT
extern XtAppContext Xt_app_con; extern XtAppContext Xt_app_con;
...@@ -5677,12 +5678,13 @@ x_make_frame_visible (f) ...@@ -5677,12 +5678,13 @@ x_make_frame_visible (f)
to let the handler know that there's something to be read. 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 We used to raise a real alarm, but it seems that the handler
isn't always enabled here. This is probably a bug. */ isn't always enabled here. This is probably a bug. */
#ifndef SIGIO 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. */ /* It could be confusing if a real alarm arrives while processing
alarm (0); the fake one. Turn it off and let the handler reset it. */
input_poll_signal (); alarm (0);
#endif input_poll_signal ();
}
} }
FRAME_SAMPLE_VISIBILITY (f); FRAME_SAMPLE_VISIBILITY (f);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment