dont wait till window visible when creating menu, as menu won't be shown until first use...

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1580 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-04-04 04:49:13 +00:00
parent 62b5dadbe3
commit 2f172a9cb0

View File

@ -364,7 +364,8 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
XFree(visualInfo); XFree(visualInfo);
if( !isSubWindow) /* wait till window visible */
if( !isSubWindow && !window->IsMenu)
XPeekIfEvent( fgDisplay.pDisplay.Display, &eventReturnBuffer, &fghWindowIsVisible, (XPointer)(window->Window.Handle) ); XPeekIfEvent( fgDisplay.pDisplay.Display, &eventReturnBuffer, &fghWindowIsVisible, (XPointer)(window->Window.Handle) );
#undef WINDOW_CONFIG #undef WINDOW_CONFIG
} }