Subject: Final tweak for OS X wm crash, thanks to Marc Culler

From: Kevin Walzer <[email-masked]>
Date: Tue, 19 Jul 2016 23:48:19 +0000

---
 macosx/tkMacOSXSubwindows.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index d9e1d63..9851474 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -368,7 +368,7 @@ XMoveResizeWindow(
 	    CGFloat XOff = (CGFloat)macWin->winPtr->wmInfoPtr->xInParent; 
 	    CGFloat YOff = (CGFloat)macWin->winPtr->wmInfoPtr->yInParent;
 	    NSRect r = NSMakeRect(X + XOff,
-	    			  tkMacOSXZeroScreenHeight - Y - YOff,
+	    			  tkMacOSXZeroScreenHeight - Y - YOff - Height,
 	    			  Width, Height);
 	    [w setFrame:[w frameRectForContentRect:r] display:YES];
 	}
-- 
cgit v0.12