changeset 77625:8e8447aa415f

(mac_dialog_show): Apply 2007-04-27 change for xmenu.c. (Fx_popup_dialog) [MAC_OSX]: Likewise.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Tue, 01 May 2007 08:17:07 +0000
parents cb9aae08782f
children 29aedab251b7
files src/macmenu.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macmenu.c	Mon Apr 30 22:05:51 2007 +0000
+++ b/src/macmenu.c	Tue May 01 08:17:07 2007 +0000
@@ -1011,6 +1011,11 @@
       DialogItemIndex item_hit;
       Lisp_Object tem;
 
+      /* 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.  */
+      Fredisplay (Qt);
+
       tem = Fstring_match (concat3 (build_string ("\\("),
 				    call0 (intern ("sentence-end")),
 				    build_string ("\\)\n")),
@@ -2943,6 +2948,11 @@
     first_wv = wv;
   }
 
+  /* 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.  */
+  Fredisplay (Qt);
+
   /* Actually create the dialog.  */
 #if TARGET_API_MAC_CARBON
   menu_item_selection = create_and_show_dialog (f, first_wv);