changeset 17995:ea1db0ede4ce

make sure Octave is displayed in a global menu bar, not another widget name * main-window.cc (set_window_layout): show main window first but minimized in order to avoid flickering
author Torsten <ttl@justmail.de>
date Sun, 24 Nov 2013 13:11:36 +0100
parents a99b7d656a6c
children 260b44c0ed69
files libgui/src/main-window.cc
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Sun Nov 24 02:57:32 2013 -0500
+++ b/libgui/src/main-window.cc	Sun Nov 24 13:11:36 2013 +0100
@@ -909,9 +909,12 @@
         }
     }
 
+  // show main first but minimized to avoid flickering
+  // otherwise the name of a floating widget is shown in a global menu bar
+  showMinimized ();
   restoreState (settings->value ("MainWindow/windowState").toByteArray ());
   restoreGeometry (settings->value ("MainWindow/geometry").toByteArray ());
-  show ();  // main window is ready and can be shown (as first window)
+  show ();
 
   // show floating widgets after main win to ensure "Octave" in central menu
   foreach (octave_dock_widget *widget, float_and_visible)