]> git.sesse.net Git - vlc/commitdiff
macosx: fix lion fullscreen button in dark ui in some cases
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 21 Apr 2012 10:49:10 +0000 (12:49 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 21 Apr 2012 11:09:04 +0000 (13:09 +0200)
Especially this is needed when fullscreen is true in video prefs, but video has not started yet.

modules/gui/macosx/MainWindowTitle.m

index a737a42eb10a277e172658d3181d811079819c4d..40e86e044d0290fab28b1d4fa80e78453ae2f669 100644 (file)
     else if (sender == o_green_btn)
         [[self window] performZoom: sender];
     else if (sender == o_fullscreen_btn)
-        [[VLCCoreInteraction sharedInstance] toggleFullscreen];
+    {
+        // set fs directly to true, as the vars can be already true in some configs
+        var_SetBool( pl_Get( VLCIntf ), "fullscreen", true );
+
+        vout_thread_t *p_vout = getVout();
+        if( p_vout )
+        {
+            var_SetBool( p_vout, "fullscreen", true );
+            vlc_object_release( p_vout );
+        }    
+    }
     else
         msg_Err( VLCIntf, "unknown button action sender" );