]> git.eshelyaron.com Git - emacs.git/commitdiff
(xdialog_show): Call Fredisplay before showing the dialog.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Apr 2007 06:39:15 +0000 (06:39 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Apr 2007 06:39:15 +0000 (06:39 +0000)
src/xmenu.c

index b9aabd94ae1b758421f6b1e52ae322dad3d675f3..fd6fc960739fc6d2b3f99b1ef2b081e2e0d9f561 100644 (file)
@@ -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);