Force window(s) to primary screen if restored frame string is invalid

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36720 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2013-06-11 23:49:28 +00:00
parent 7ac1d3dd1c
commit 1b649920e9

View file

@ -4833,8 +4833,8 @@ current key view.<br />
// If the window doesn't show up on any screen then we need
// to move it so it can be seen and assign it to the main
// screen...
screen = [NSScreen mainScreen];
NSDebugLLog(@"NSWindow", @"%s: re-assigning to main screen\n", __PRETTY_FUNCTION__);
screen = [[NSScreen screens] objectAtIndex: 0];
NSDebugLLog(@"NSWindow", @"%s: re-assigning to primary screen\n", __PRETTY_FUNCTION__);
}
nRect = [screen visibleFrame];