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

@ -1,3 +1,8 @@
2010-12-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSWindow.m (-sendEvent:): Allow any window that responds
YES to -worksWhenModal to become key in a modal session.
2010-12-06 Riccardo Mottola 2010-12-06 Riccardo Mottola
* Source/NSWorkspace.m * Source/NSWorkspace.m

View file

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