summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXSubwindows.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2016-07-19 23:48:19 (GMT)
committerKevin Walzer <kw@codebykevin.com>2016-07-19 23:48:19 (GMT)
commit7f1b491ea67441db7042de9a62f18d53e1d59962 (patch)
treef5e4ec814dbc029ad3acaed73b1944d047d0d834 /macosx/tkMacOSXSubwindows.c
parentf6f764da535af5fe14ebcb1c32d6a34b11d3eee6 (diff)
downloadtk-7f1b491ea67441db7042de9a62f18d53e1d59962.zip
tk-7f1b491ea67441db7042de9a62f18d53e1d59962.tar.gz
tk-7f1b491ea67441db7042de9a62f18d53e1d59962.tar.bz2
Final tweak for OS X wm crash, thanks to Marc Culler
Diffstat (limited to 'macosx/tkMacOSXSubwindows.c')
-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];
}