restoring windows (EngineOutput and MoveHistory) on startup
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 24 Nov 2009 04:22:58 +0000 (20:22 -0800)
committerArun Persaud <arun@nubati.net>
Tue, 24 Nov 2009 04:22:58 +0000 (20:22 -0800)
restoring the open / closed status of the
auxiliary windows (EngineOutput and MoveHistory) on startup
in XBoard like they do in WinBoard, which makes sense now that
we aso remember their coordinates between sessions.

xboard.c

index d505eb5..900d5b9 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -2461,6 +2461,19 @@ XBoard square size (hint): %d\n\
                      (XtEventHandler) EventProc, NULL);
     /* end why */
 
+    /* [AS] Restore layout */
+    if( wpMoveHistory.visible ) {
+      HistoryPopUp();
+    }
+
+//    if( wpEvalGraph.visible ) {
+//      EvalGraphPopUp();
+//    }
+
+    if( wpEngineOutput.visible ) {
+      EngineOutputPopUp();
+    }
+
     InitBackEnd2();
 
     if (errorExitStatus == -1) {