add small note: closing menu before executing callback is also important so that...
authorDiederick Niehorster <dcnieho@gmail.com>
Fri, 17 Jan 2014 16:18:35 +0000 (16:18 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Fri, 17 Jan 2014 16:18:35 +0000 (16:18 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1636 7f0cb862-5218-0410-a997-914c9d46530a

src/fg_menu.c

index bbae132..9e20d5d 100644 (file)
@@ -607,7 +607,7 @@ GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed,
                 fgSetWindow( parent_window );
                 fgStructure.CurrentMenu = active_menu;
 
-                /* Deactivate menu and then call callback (we don't want menu to stay in view while callback is executing) */
+                /* Deactivate menu and then call callback (we don't want menu to stay in view while callback is executing, and user should be able to change menus in callback) */
                 fgDeactivateMenu( parent_window );
                 active_menu->Callback( active_entry->ID );