summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newt/native/MacWindow.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m
index f480103f2..4e4dc3173 100644
--- a/src/newt/native/MacWindow.m
+++ b/src/newt/native/MacWindow.m
@@ -59,7 +59,7 @@ static NSString* jstringToNSString(JNIEnv* env, jstring jstr)
static void setFrameTopLeftPoint(NSWindow* pWin, NSWindow* mWin, jint x, jint y, jint totalHeight) {
- NSScreen* screen = [NSScreen mainScreen];
+ NSScreen* screen = [mWin screen];
NSRect screenTotal = [screen frame];
NSPoint pS = NSMakePoint(screenTotal.origin.x + x, screenTotal.origin.y + screenTotal.size.height - y - totalHeight);