Commit e8636ac8 authored by Ken Brown's avatar Ken Brown

Fix startup display on Cygwin

* src/xterm.c (x_make_frame_visible) [CYGWIN]: Restore code that
forces input to be read.  (Bug#24091)
parent 3926c5ad
......@@ -11504,6 +11504,22 @@ x_make_frame_visible (struct frame *f)
/* Try to wait for a MapNotify event (that is what tells us when a
frame becomes visible). */
#ifdef CYGWIN
/* On Cygwin, which uses input polling, we need to force input to
be read. See
Fake an alarm signal to let the handler know that there's
something to be read.
It could be confusing if a real alarm arrives while processing
the fake one. Turn it off and let the handler reset it. */
int old_poll_suppress_count = poll_suppress_count;
poll_suppress_count = 1;
poll_for_input_1 ();
poll_suppress_count = old_poll_suppress_count;
x_wait_for_event (f, MapNotify);
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