aboutsummaryrefslogtreecommitdiffstats
path: root/src/macmenu.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <[email protected]>2007-05-01 08:17:19 +0000
committerYAMAMOTO Mitsuharu <[email protected]>2007-05-01 08:17:19 +0000
commit0f6da68b858c1f568a5648de96948740c22e63b4 (patch)
tree356dfc27af55ef9e22b8af511d53676d6645ce53 /src/macmenu.c
parente795222265b942e2cc84a673d6cd50a2891ebe2b (diff)
(mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
(Fx_popup_dialog) [MAC_OSX]: Likewise.
Diffstat (limited to 'src/macmenu.c')
-rw-r--r--src/macmenu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/macmenu.c b/src/macmenu.c
index c7a84df710..a5196a156e 100644
--- a/src/macmenu.c
+++ b/src/macmenu.c
@@ -1011,6 +1011,11 @@ for instance using the window manager, then this produces a quit and
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 @@ mac_dialog_show (f, keymaps, title, header, error_name)
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);