|
From: | Andreas Höschler |
Subject: | Re: Bugs in gui/back |
Date: | Sat, 21 Apr 2018 19:43:12 +0200 |
Hi Nikolaus, still alive? (same question goes to me :) NSWindow::drawRect:display: Sorry, that was a typo! :-( I meant NSWindow::setFrame:display: Anyways, what should a window draw? Only NSView and NSCell draw something. There actually is a NSWindow::drawRect: method in the GNustep code. No idea when this is called (probably not related to my problem). My problem is rather anywhere here in the the sendEvent: method of NSWindow.m. case GSAppKitWindowResized: { NSRect newFrame; newFrame.size.width = [theEvent data1]; newFrame.size.height = [theEvent data2]; /* Resize events always move the frame origin. The new origin is stored in the event location field. */ newFrame.origin = [theEvent locationInWindow]; /* FIXME: For a user resize we should call windowWillResize:toSize: on the delegate. */ _frame = newFrame; newFrame.origin = NSZeroPoint; [_wv setFrame: newFrame]; [_wv setNeedsDisplay: YES]; if (_autosaveName != nil) { [self saveFrameUsingName: _autosaveName]; } [self _processResizeEvent]; [nc postNotificationName: NSWindowDidResizeNotification object: self]; break; } newFrame.size.height = [theEvent data2]; comes from, but the height is wrong. And my guess is that the height of the window title bar is not subtracted!? Best wishes, Andreas |
[Prev in Thread] | Current Thread | [Next in Thread] |