mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 11:41:06 +00:00
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:
parent
7ac1d3dd1c
commit
1b649920e9
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue