diff options
| author | Richard M. Stallman | 1994-06-18 18:57:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-18 18:57:39 +0000 |
| commit | 0dacf79125b0a38ecd822b47a41d023e8b4552b9 (patch) | |
| tree | bfbdaf1143082c5e71396ad223a9e982a1f5453b /src | |
| parent | 2a06556614e9445a90d3e58927e98dce1f45bd6f (diff) | |
| download | emacs-0dacf79125b0a38ecd822b47a41d023e8b4552b9.tar.gz emacs-0dacf79125b0a38ecd822b47a41d023e8b4552b9.zip | |
(make_frame_visible): At end, wait till Emacs sees frame is visible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index d940d3c84b8..9ab6c0bce55 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5567,6 +5567,17 @@ x_make_frame_visible (f) | |||
| 5567 | XFlushQueue (); | 5567 | XFlushQueue (); |
| 5568 | 5568 | ||
| 5569 | UNBLOCK_INPUT; | 5569 | UNBLOCK_INPUT; |
| 5570 | |||
| 5571 | /* Synchronize to ensure Emacs knows the frame is visible | ||
| 5572 | before we do anything else. We do this loop with input not blocked | ||
| 5573 | so that incoming events are handled. */ | ||
| 5574 | { | ||
| 5575 | Lisp_Object frame; | ||
| 5576 | XSET (frame, Lisp_Frame, f); | ||
| 5577 | while (! f->async_visible) | ||
| 5578 | x_sync (frame); | ||
| 5579 | FRAME_SAMPLE_VISIBILITY (f); | ||
| 5580 | } | ||
| 5570 | } | 5581 | } |
| 5571 | 5582 | ||
| 5572 | /* Change from mapped state to withdrawn state. */ | 5583 | /* Change from mapped state to withdrawn state. */ |