From 5b30b8c04d03d19742295fa23bce121f1389b9f8 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Mon, 2 Oct 2000 17:48:46 +0000 Subject: [PATCH] [_initBackendWindow] always redisplay _wv [setFrame:display:] set the frame of _wv directly if deferred. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7698 72102866-910b-0410-8b05-ffd578937521 --- Source/NSWindow.m | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 0aaf79cd0..d2ee1d70e 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -593,8 +593,8 @@ static NSMapTable* windowmaps = NULL; { frame.origin = NSZeroPoint; [_wv setFrame: frame]; - [_wv setNeedsDisplay: YES]; } + [_wv setNeedsDisplay: YES]; /* Ok, now add the drag types back */ if (dragTypes) @@ -1349,7 +1349,13 @@ static NSMapTable* windowmaps = NULL; DPSplacewindow(GSCurrentContext(), frameRect.origin.x, frameRect.origin.y, frameRect.size.width, frameRect.size.height, _windowNum); else - _frame = frameRect; + { + _frame = frameRect; + frameRect = [NSWindow contentRectForFrameRect: frameRect + styleMask: _styleMask]; + frameRect.origin = NSZeroPoint; + [_wv setFrame: frameRect]; + } if (flag) [self display];