From b28d7564a8f6e0fdf5aa59f312644f0595c2d52b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 1 May 2007 08:15:56 +0000 Subject: [PATCH] (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. (Fx_popup_dialog) [MAC_OSX]: Likewise. --- src/ChangeLog | 5 +++++ src/macmenu.c | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 55e91a56e77..4491b7cd518 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-05-01 YAMAMOTO Mitsuharu + + * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. + (Fx_popup_dialog) [MAC_OSX]: Likewise. + 2007-04-29 Richard Stallman * insdel.c (replace_range): For undo, record insertion first. diff --git a/src/macmenu.c b/src/macmenu.c index c7a84df7106..a5196a156eb 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); -- 2.39.2