show flag should be SW_SHOWNA, not SW_SHOWNOACTIVATE according to docs
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1611
7f0cb862-5218-0410-a997-
914c9d46530a
break;
case DesireNormalState:
if (win->IsMenu)
- cmdShow = SW_SHOWNOACTIVATE; /* Just show, don't activate if its a menu */
+ cmdShow = SW_SHOWNA; /* Just show, don't activate if its a menu */
else
cmdShow = SW_SHOW;
break;
menu = fgGetActiveMenu();
if ( menu )
- {
- printf("focus menu close\n");
fgDeactivateMenu(menu->ParentWindow);
- }
};