Allow two-games-per-opening to work with book
[xboard.git] / xedittags.c
index 09d2288..a83e47b 100644 (file)
@@ -91,11 +91,6 @@ extern char *getenv();
 # define N_(s)  s
 #endif
 
-extern Widget formWidget, shellWidget, boardWidget, menuBarWidget;
-extern Display *xDisplay;
-extern int squareSize;
-extern Pixmap xMarkPixmap;
-
 Position tagsX = -1, tagsY = -1;
 
 void TagsPopUp(tags, msg)
@@ -115,6 +110,7 @@ void EditTagsPopUp(tags, dest)
 void TagsPopDown()
 {
     PopDown(2);
+    bookUp = False;
 }
 
 void
@@ -126,7 +122,7 @@ EditTagsProc(w, event, prms, nprms)
 {
     Arg args[5];
     int j;
-    if (PopDown(2)) {
+    if (!bookUp && PopDown(2)) {
        j = 0;
        XtSetArg(args[j], XtNleftBitmap, None); j++;
        XtSetValues(XtNameToWidget(menuBarWidget, "menuView.Show Tags"), args, j);