summaryrefslogtreecommitdiffstats
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)
commit2aa945d6a8109c74d9ff3331fb99a093635e0cd7 (patch)
treef5e4ec814dbc029ad3acaed73b1944d047d0d834
parent238b8d68c514e0bca1a97dea4d50a4badedf2111 (diff)
downloadtk-2aa945d6a8109c74d9ff3331fb99a093635e0cd7.zip
tk-2aa945d6a8109c74d9ff3331fb99a093635e0cd7.tar.gz
tk-2aa945d6a8109c74d9ff3331fb99a093635e0cd7.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];
}