git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@720
7f0cb862-5218-0410-a997-
914c9d46530a
if( !( window->Window.Handle ) )
fgError( "Failed to create a window (%s)!", title );
+ /* Make a menu window always on top - fix Feature Request 947118 */
+ if( window->IsMenu || gameMode )
+ SetWindowPos(
+ window->Window.Handle,
+ HWND_TOPMOST,
+ 0, 0, 0, 0,
+ SWP_NOMOVE | SWP_NOSIZE
+ );
#if defined(_WIN32_WCE)
ShowWindow( window->Window.Handle, SW_SHOW );
#else