projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be more careful about closing menus when focus changes. Only do so when new focus...
[freeglut]
/
src
/
fg_structure.c
diff --git
a/src/fg_structure.c
b/src/fg_structure.c
index
2a65b69
..
8e1b966
100644
(file)
--- a/
src/fg_structure.c
+++ b/
src/fg_structure.c
@@
-568,7
+568,7
@@
static void fghcbGetActiveMenu( SFG_Menu *menu,
if ( enumerator->found )
return;
if ( enumerator->found )
return;
- /* Check the menu's ID. */
+ /* Check the menu's is active */
if( menu->IsActive )
{
enumerator->found = GL_TRUE;
if( menu->IsActive )
{
enumerator->found = GL_TRUE;
@@
-580,6
+580,7
@@
static void fghcbGetActiveMenu( SFG_Menu *menu,
/*
* Returns active menu, if any. Assumption: only one menu active throughout application at any one time.
/*
* Returns active menu, if any. Assumption: only one menu active throughout application at any one time.
+ * This is false when a submenu is also open.
* This is easier than fgWindowByXXX as all menus are placed in one doubly linked list...
*/
SFG_Menu* fgGetActiveMenu( )
* This is easier than fgWindowByXXX as all menus are placed in one doubly linked list...
*/
SFG_Menu* fgGetActiveMenu( )