Additional fixes for 'screen' method processing

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37840 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2014-05-05 16:34:52 +00:00
parent 0176b9a65d
commit 3877d7c696
2 changed files with 21 additions and 14 deletions

View file

@ -132,7 +132,7 @@ static NSMutableArray *screenArray = nil;
NSWindow *keyWindow;
keyWindow = [NSApp keyWindow];
if (keyWindow != nil)
if ((keyWindow != nil) && ([keyWindow screen] != nil))
{
return [keyWindow screen];
}