Allow any window that responds YES to -worksWhenModal to become key in

a modal session.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31714 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-12-07 07:55:48 +00:00
parent d4a93852ff
commit 879c4b2af4
2 changed files with 7 additions and 1 deletions

View file

@ -3972,7 +3972,8 @@ resetCursorRectsForView(NSView *theView)
[self deminiaturize: self];
}
if ([NSApp modalWindow]
&& self != [NSApp modalWindow])
&& self != [NSApp modalWindow]
&& ![self worksWhenModal])
{
/* Ignore this request. We're in a modal loop and the
user pressed on the title bar of another window. */