From: Jan Djärv Date: Fri, 27 Apr 2007 06:26:09 +0000 (+0000) Subject: (xdialog_show): Call Fredisplay before showing the dialog. X-Git-Tag: emacs-pretest-23.0.90~12786 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1f6b7692d3e9d8cde9e28719e0d9abc13e0c5bf;p=emacs.git (xdialog_show): Call Fredisplay before showing the dialog. --- diff --git a/src/ChangeLog b/src/ChangeLog index 4282e904ff2..22055a99973 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2007-04-27 Jan Dj,Ad(Brv + * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. + * gtkutil.c (xg_update_menubar, create_menus): Create empty submenu for menu bar items. diff --git a/src/xmenu.c b/src/xmenu.c index b9aabd94ae1..fd6fc960739 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);