diff options
-rw-r--r-- | src/newt/native/MacWindow.m | 2 |
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); |