# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1178007345 0 # Node ID 118c377029340e5e11e6f492316c6ef078e61b1e # Parent dc554d19a7d33564945a482e9aaa9054caa42a47 (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. (Fx_popup_dialog) [MAC_OSX]: Likewise. diff -r dc554d19a7d3 -r 118c37702934 src/macmenu.c --- a/src/macmenu.c Sun Apr 29 21:57:37 2007 +0000 +++ b/src/macmenu.c Tue May 01 08:15:45 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);