- SFG_Window *window = (SFG_Window *)fgStructure.Windows.First ;
-
- /*
- * Processing before the main loop: If there is a window which is open and
- * which has a visibility/windowStatus callback, call it to inform the client
- * code that the window is visible. I know this is an ugly hack,
- * but I'm not sure what else to do about it. Depending on WM_ACTIVATE would
- * not work as not all windows get this when you are opening multiple before
- * the mainloop starts. WM_SHOWWINDOW looked like an interesting candidate, but
- * it is generated and processed before glutCreate(Sub)Window returns, so no
- * callback can yet be set on the window.
- */
- while( window )
- {
- if ( FETCH_WCB( *window, WindowStatus ) )
- {
- SFG_Window *current_window = fgStructure.CurrentWindow ;
-
- fghNotifyWindowStatus(window);
- fgSetWindow( current_window );
- }
-
- window = (SFG_Window *)window->Node.Next ;
- }