mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:40:47 +00:00
restore correct behavior of _screenForFrame:, and fix cascadeTopLeftFromPoint: to correctly put window on screen if it is not on any screen
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37806 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f845468150
commit
0b3df11864
1 changed files with 3 additions and 2 deletions
|
@ -389,7 +389,7 @@ has blocked and waited for events.
|
|||
*/
|
||||
- (NSScreen *) _screenForFrame: (NSRect)frame
|
||||
{
|
||||
NSInteger largest = -1;
|
||||
NSInteger largest = 0;
|
||||
NSArray *screens = [NSScreen screens];
|
||||
NSInteger index = 0;
|
||||
NSScreen *theScreen = nil;
|
||||
|
@ -1969,7 +1969,8 @@ titleWithRepresentedFilename(NSString *representedFilename)
|
|||
{
|
||||
NSScreen *screen = [NSScreen mainScreen];
|
||||
NSRect sFrame = [screen visibleFrame];
|
||||
topLeftPoint = sFrame.origin;
|
||||
topLeftPoint.x = NSMinX(sFrame);
|
||||
topLeftPoint.y = NSMaxY(sFrame);
|
||||
}
|
||||
else if (NSEqualPoints(topLeftPoint, NSZeroPoint) == YES)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue