Fixed problems with menu in windows: transient menus and pop-ups.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
espectador 2011-01-24 07:02:15 +00:00
parent 47246f7bb0
commit 2d2edfca4f
2 changed files with 8 additions and 1 deletions

View file

@ -1658,7 +1658,8 @@ static NSMapTable *viewInfo = 0;
in a window*/
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) ==
NSWindows95InterfaceStyle &&
anAttachedMenu != nil)
![[self menu] isTransient] &&
![[self menu] _ownedByPopUp])
{
if ([self hitTest: location] == nil)
{