changeset 35081:65f3a403ab3e

Set up things like fullscreen status etc. before showing the window.
author reimar
date Thu, 13 Sep 2012 18:32:32 +0000
parents a10c7a7a9232
children 6d8be70115a8
files libvo/vo_corevideo.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Thu Sep 13 18:30:12 2012 +0000
+++ b/libvo/vo_corevideo.m	Thu Sep 13 18:32:32 2012 +0000
@@ -555,9 +555,6 @@
 	if(error != kCVReturnSuccess)
 		mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create OpenGL texture(%d)\n", error);
 
-	//show window
-	[window makeKeyAndOrderFront:self];
-
 	vo_fs = flags & VOFLAG_FULLSCREEN;
 
 	if(vo_rootwin)
@@ -568,6 +565,9 @@
 
 	if(vo_ontop)
 		[self ontop];
+
+	//show window
+	[window makeKeyAndOrderFront:self];
 }
 
 /*