summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2016-07-19 23:48:56 (GMT)
committerKevin Walzer <kw@codebykevin.com>2016-07-19 23:48:56 (GMT)
commita15e1aaed639996ee47d9dcabc8faee9d03fdc2d (patch)
tree974d330562a4568efaddab5434f30ebbf4a5a414
parentab02e2e1a2936771e3de8bbd3e4fa9c6b84296a4 (diff)
downloadtk-a15e1aaed639996ee47d9dcabc8faee9d03fdc2d.zip
tk-a15e1aaed639996ee47d9dcabc8faee9d03fdc2d.tar.gz
tk-a15e1aaed639996ee47d9dcabc8faee9d03fdc2d.tar.bz2
Final tweak for OS X wm crash, thanks to Marc Culler
-rw-r--r--macosx/tkMacOSXSubwindows.c2
1 files changed, 1 insertions, 1 deletions
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];
}