[vlc-commits] macosx: directly toggle vout fullscreen variable to support multiple windows in fullscreen

David Fuhrmann git at videolan.org
Sat Feb 9 18:45:12 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Feb  9 15:06:40 2013 +0100| [e3767037cb1b5b131d5d508c6d0c59eb651d5fbf] | committer: David Fuhrmann

macosx: directly toggle vout fullscreen variable to support multiple windows in fullscreen

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3767037cb1b5b131d5d508c6d0c59eb651d5fbf
---

 modules/gui/macosx/CoreInteraction.m |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index e310ff6..933b1fe 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -615,13 +615,13 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
     if (!p_intf)
         return;
 
-    BOOL b_fs = var_ToggleBool(pl_Get(p_intf), "fullscreen");
-
     vout_thread_t *p_vout = getVoutForActiveWindow();
     if (p_vout) {
-        var_SetBool(p_vout, "fullscreen", b_fs);
+        BOOL b_fs = var_ToggleBool(p_vout, "fullscreen");
+        var_SetBool(pl_Get(p_intf), "fullscreen", b_fs);
         vlc_object_release(p_vout);
     } else { // e.g. lion fullscreen toggle
+        BOOL b_fs = var_ToggleBool(pl_Get(p_intf), "fullscreen");
         [[VLCMain sharedInstance] setFullscreen:b_fs forWindow:nil];
     }
 }



More information about the vlc-commits mailing list