From 879c4b2af47e06b94d75f27a222cabee8cdd7444 Mon Sep 17 00:00:00 2001 From: Wolfgang Lux Date: Tue, 7 Dec 2010 07:55:48 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/NSWindow.m | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 338d929e8..755de732a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-07 Wolfgang Lux + + * Source/NSWindow.m (-sendEvent:): Allow any window that responds + YES to -worksWhenModal to become key in a modal session. + 2010-12-06 Riccardo Mottola * Source/NSWorkspace.m diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 77ced406f..dd930a17b 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -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. */