Fixed the behaviour of menu in window when hide the app

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31859 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2011-01-09 06:10:02 +00:00
parent 90687109f7
commit bf270ebcfb
3 changed files with 23 additions and 0 deletions

View file

@ -1818,6 +1818,14 @@ many times.
if (_f.is_main == YES)
{
_f.is_main = NO;
//We close the menu if the app will be hide
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) ==
NSWindows95InterfaceStyle)
{
[[[self menu] attachedMenu] close];
}
if (_f.is_key == YES)
{
[_wv setInputState: GSTitleBarKey];