aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv <[email protected]>2007-04-27 06:39:15 +0000
committerJan Djärv <[email protected]>2007-04-27 06:39:15 +0000
commit3dbe4b5413ba2758ca897f715d5cc4ff04bcb093 (patch)
tree94b1c746da4eafeda42cb49d6fabc8231b93e985 /src
parent0e65eb18a6f80f612460849a713531dee2c7139f (diff)
(xdialog_show): Call Fredisplay before showing the dialog.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index b9aabd94ae..fd6fc96073 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -3333,6 +3333,14 @@ xdialog_show (f, keymaps, title, header, error_name)
/* 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);