> Note that I'm not opposed to a timeout solution. As far as w32term.c is > concerned, I think your solution is superior to the present one. But > IMHO we should try to orchestrate all these efforts using a timer to > synchronize Emacs with the window manager or window system in a uniform > way so that the user knows where and how her time is spent. > > For example, if we decided that x_wait_for_event is a good idea, then we > should implement it on Windows too and use it uniformly when waiting for > a move frame event or the visibility confirmation. Huh. I was not aware of those other functions. Here's a patch which makes the timeout in x_wait_for_event configurable, and uses it in x_make_frame_visible.