Commit 0dacf791 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(make_frame_visible): At end, wait till Emacs sees frame is visible.

parent 2a065566
......@@ -5567,6 +5567,17 @@ x_make_frame_visible (f)
XFlushQueue ();
UNBLOCK_INPUT;
/* Synchronize to ensure Emacs knows the frame is visible
before we do anything else. We do this loop with input not blocked
so that incoming events are handled. */
{
Lisp_Object frame;
XSET (frame, Lisp_Frame, f);
while (! f->async_visible)
x_sync (frame);
FRAME_SAMPLE_VISIBILITY (f);
}
}
/* Change from mapped state to withdrawn state. */
......
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