From cb4ab6e766e78c9abd2216db27afcaeb3b5d574c Mon Sep 17 00:00:00 2001 From: fedor Date: Tue, 2 Oct 2001 17:38:21 +0000 Subject: [PATCH] setFrame: to new constrained rect git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11075 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSWindow.m | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3e9e950a5..e27927b7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-10-02 Adam Fedor + + * Source/NSWindow.m (-orderWindow:relativeTo:): setFrame: to the + new constrained rect (if changed). + 2001-09-28 Fred Kiefer * Header/gnustep/gui/NSPopupButton.h diff --git a/Source/NSWindow.m b/Source/NSWindow.m index dcf498d1d..8ce8ce963 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -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)