setFrame: to new constrained rect

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11075 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-10-02 17:38:21 +00:00
parent 9f6b0ac230
commit cb4ab6e766
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-10-02 Adam Fedor <fedor@gnu.org>
* Source/NSWindow.m (-orderWindow:relativeTo:): setFrame: to the
new constrained rect (if changed).
2001-09-28 Fred Kiefer <FredKiefer@gmx.de>
* Header/gnustep/gui/NSPopupButton.h

View file

@ -1139,13 +1139,15 @@ static NSNotificationCenter *nc = nil;
}
else
{
_frame = [self constrainFrameRect:_frame toScreen:[self screen]];
NSRect nframe = [self constrainFrameRect:_frame toScreen:[self screen]];
// create deferred window
if (_windowNum == 0)
{
[self _initBackendWindow: _frame];
display = YES;
}
else if (NSEqualRects(_frame, nframe) == NO)
[self setFrame: nframe display: NO];
}
DPSorderwindow(context, place, otherWin, _windowNum);
if (display)