+ menu->ParentWindow = fgStructure.Window ;
+
+ /*
+ * Create a window for the menu to reside in. Set the
+ * global variable BuildingAMenu to true so we can ensure
+ * it is created without decorations.
+ */
+ fgState.BuildingAMenu = TRUE ;
+
+ fgCreateWindow ( NULL, NULL, x, y, w, h, FALSE ) ;
+ menu->Window = fgStructure.Window ;
+ glutDisplayFunc ( fgDisplayMenu ) ;
+
+ /*
+ * While BuildingAMenu is true, all windows built have no decorations. That's
+ * not a good default behavior, so let's set it false again.
+ */
+ fgState.BuildingAMenu = FALSE ;
+
+ glutHideWindow () ; /* Hide the window for now */
+ fgSetWindow ( current_window ) ;
+