summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXSubwindows.c
diff options
context:
space:
mode:
authorculler <culler>2019-10-21 00:02:08 (GMT)
committerculler <culler>2019-10-21 00:02:08 (GMT)
commite5ec9901434a09547d80a2fa1f351dedcf9e7f1b (patch)
treea23379dcda195c1b444282b3e1f9d137b7b81f14 /macosx/tkMacOSXSubwindows.c
parentb85f408680332d1174c512d285fb74c09a6d9833 (diff)
downloadtk-e5ec9901434a09547d80a2fa1f351dedcf9e7f1b.zip
tk-e5ec9901434a09547d80a2fa1f351dedcf9e7f1b.tar.gz
tk-e5ec9901434a09547d80a2fa1f351dedcf9e7f1b.tar.bz2
Apply macOS patch for [aea00be1] by Christopher Chavez. Prevents glitches when the screen resolution is changed.
Diffstat (limited to 'macosx/tkMacOSXSubwindows.c')
-rw-r--r--macosx/tkMacOSXSubwindows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index e851701..5063fa3 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -426,7 +426,7 @@ XMoveResizeWindow(
CGFloat XOff = (CGFloat) macWin->winPtr->wmInfoPtr->xInParent;
CGFloat YOff = (CGFloat) macWin->winPtr->wmInfoPtr->yInParent;
NSRect r = NSMakeRect(
- X + XOff, tkMacOSXZeroScreenHeight - Y - YOff - Height,
+ X + XOff, TkMacOSXZeroScreenHeight() - Y - YOff - Height,
Width, Height);
[w setFrame:[w frameRectForContentRect:r] display:YES];
@@ -467,7 +467,7 @@ XMoveWindow(
if (w) {
[w setFrameTopLeftPoint: NSMakePoint(
- x, tkMacOSXZeroScreenHeight - y)];
+ x, TkMacOSXZeroScreenHeight() - y)];
}
} else {
MoveResizeWindow(macWin);