Mercurial > emacs
changeset 77573:c7e360cec7a2
(xdialog_show): Call Fredisplay before showing the dialog.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 27 Apr 2007 06:39:15 +0000 |
parents | 40a177d7a6bd |
children | b3ee2b840a3b |
files | src/xmenu.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Fri Apr 27 01:21:54 2007 +0000 +++ b/src/xmenu.c Fri Apr 27 06:39:15 2007 +0000 @@ -3333,6 +3333,14 @@ /* No selection has been chosen yet. */ menu_item_selection = 0; + /* Force a redisplay before showing the dialog. If a frame is created + just before showing the dialog, its contents may not have been fully + drawn, as this depends on timing of events from the X server. Redisplay + is not done when a dialog is shown. If redisplay could be done in the + X event loop (i.e. the X event loop does not run in a signal handler) + this would not be needed. */ + Fredisplay (Qt); + /* Actually create and show the dialog. */ create_and_show_dialog (f, first_wv);