From 1d417866d42286bdcd367bb7c0e8798e86e46060 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 12 Oct 2011 11:09:35 +0200 Subject: NEWT/OSX MacWindow: Use screen of window --- src/newt/native/MacWindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/native') 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); -- cgit v1.2.3