]> git.sesse.net Git - vlc/commitdiff
macosx: fix start in fullscreen (fixes #8770)
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Wed, 12 Jun 2013 18:42:18 +0000 (20:42 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Wed, 12 Jun 2013 18:48:32 +0000 (20:48 +0200)
modules/gui/macosx/intf.m

index fc8e9902708293bf2931cfd5c90e09957961253e..9ecdcf88ea8311b0a4e7bd1185e15a7c88f28926 100644 (file)
@@ -179,7 +179,13 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
     p_wnd->handle.nsobject = videoView;
 
     // TODO: find a cleaner way for "start in fullscreen"
-    if (var_InheritBool(VLCIntf, "fullscreen")) {
+    // either prefs settings, or fullscreen button was pressed before
+    if (var_InheritBool(VLCIntf, "fullscreen") || var_GetBool(pl_Get(VLCIntf), "fullscreen")) {
+
+        // this is not set when we start in fullscreen because of
+        // fullscreen settings in video prefs the second time
+        var_SetBool(p_wnd->p_parent, "fullscreen", 1);
+
         int i_full = 1;
 
         SEL sel = @selector(setFullscreen:forWindow:);