redisplay is now also on the work list instead of handled separately
[freeglut] / src / x11 / fg_window_x11.c
index f9e94a4..d2a3bbd 100644 (file)
@@ -364,7 +364,8 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
 
     XFree(visualInfo);
 
-    if( !isSubWindow)
+    /* wait till window visible */
+    if( !isSubWindow && !window->IsMenu)
         XPeekIfEvent( fgDisplay.pDisplay.Display, &eventReturnBuffer, &fghWindowIsVisible, (XPointer)(window->Window.Handle) );
 #undef WINDOW_CONFIG
 }