diff options
| author | Ken Brown | 2017-10-27 13:48:46 -0400 |
|---|---|---|
| committer | Ken Brown | 2017-10-27 13:48:46 -0400 |
| commit | e8636ac8cc96e1e7e948f04091792da09dafcc76 (patch) | |
| tree | 34c5ac98381ba1f4099e23f763a7ed99fd0114d2 /src | |
| parent | 3926c5ad83f55628a50e2d0f65447ae26e631d2f (diff) | |
| download | emacs-e8636ac8cc96e1e7e948f04091792da09dafcc76.tar.gz emacs-e8636ac8cc96e1e7e948f04091792da09dafcc76.zip | |
Fix startup display on Cygwin
* src/xterm.c (x_make_frame_visible) [CYGWIN]: Restore code that
forces input to be read. (Bug#24091)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index d90654b101d..dbb8349452d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -11504,6 +11504,22 @@ x_make_frame_visible (struct frame *f) | |||
| 11504 | 11504 | ||
| 11505 | /* Try to wait for a MapNotify event (that is what tells us when a | 11505 | /* Try to wait for a MapNotify event (that is what tells us when a |
| 11506 | frame becomes visible). */ | 11506 | frame becomes visible). */ |
| 11507 | |||
| 11508 | #ifdef CYGWIN | ||
| 11509 | /* On Cygwin, which uses input polling, we need to force input to | ||
| 11510 | be read. See | ||
| 11511 | http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00351.html | ||
| 11512 | and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24091#131. | ||
| 11513 | Fake an alarm signal to let the handler know that there's | ||
| 11514 | something to be read. | ||
| 11515 | |||
| 11516 | It could be confusing if a real alarm arrives while processing | ||
| 11517 | the fake one. Turn it off and let the handler reset it. */ | ||
| 11518 | int old_poll_suppress_count = poll_suppress_count; | ||
| 11519 | poll_suppress_count = 1; | ||
| 11520 | poll_for_input_1 (); | ||
| 11521 | poll_suppress_count = old_poll_suppress_count; | ||
| 11522 | #endif | ||
| 11507 | x_wait_for_event (f, MapNotify); | 11523 | x_wait_for_event (f, MapNotify); |
| 11508 | } | 11524 | } |
| 11509 | } | 11525 | } |