summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_macosx.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index f65533ca6a..701ee6f197 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -302,9 +302,7 @@ static uint32_t control(uint32_t request, void *data, ...)
[window setInitialFirstResponder:self];
[window setAcceptsMouseMovedEvents:YES];
[window setTitle:@"MPlayer - The Movie Player"];
- [window center];
- [window makeKeyAndOrderFront:self];
-
+ [window center];
[self setOpenGLContext:glContext];
[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
@@ -323,6 +321,9 @@ static uint32_t control(uint32_t request, void *data, ...)
if(error != kCVReturnSuccess)
mp_msg(MSGT_VO, MSGL_ERR,"Failed to create OpenGL texture(%d)\n", error);
+ //show window
+ [window makeKeyAndOrderFront:self];
+
isFullscreen = 0;
}