be more careful about closing menus when focus changes. Only do so when new focus...
authorDiederick Niehorster <dcnieho@gmail.com>
Thu, 16 Oct 2014 17:43:22 +0000 (17:43 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Thu, 16 Oct 2014 17:43:22 +0000 (17:43 +0000)
commit91cac2f34bfc430f6a68ea950cc8f5169327b794
treeca1f7d8cb029f3fdec0d5675a36b17669d75ec75
parent06dca43af755a1956d31b105e1973714c46eda78
be more careful about closing menus when focus changes. Only do so when new focus window is not ANY of the open menus and when it is not the menu's parent window (all open menus are guaranteed to have the same parent in my reading of the code)
Also simplified situation in which menus are SW_SHOWed... if a gamemode window is open, it must the parent of any active windows as there can be no other windows open on top of the gamemode window.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1716 7f0cb862-5218-0410-a997-914c9d46530a
src/fg_structure.c
src/mswin/fg_main_mswin.c
src/mswin/fg_menu_mswin.c