[vlc-commits] macosx: Fix FS controller autosaving frame of window

David Fuhrmann git at videolan.org
Sun Jan 29 22:49:23 CET 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jan 29 22:43:53 2017 +0100| [fd2661d095be186107261814563c22ee7d969f1e] | committer: David Fuhrmann

macosx: Fix FS controller autosaving frame of window

This restores size of window correctly.

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

 extras/package/macosx/Resources/English.lproj/VLCFullScreenPanel.xib | 4 ++--
 modules/gui/macosx/VLCFSPanelController.m                            | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/extras/package/macosx/Resources/English.lproj/VLCFullScreenPanel.xib b/extras/package/macosx/Resources/English.lproj/VLCFullScreenPanel.xib
index d8dba5c..6f7c9a4 100644
--- a/extras/package/macosx/Resources/English.lproj/VLCFullScreenPanel.xib
+++ b/extras/package/macosx/Resources/English.lproj/VLCFullScreenPanel.xib
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11542" systemVersion="15G1212" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11542" systemVersion="15G1217" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
         <development version="7000" identifier="xcode"/>
@@ -28,7 +28,7 @@
         </customObject>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Fullscreen Controlls" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hasShadow="NO" hidesOnDeactivate="YES" oneShot="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="VLCFullscreenControls" animationBehavior="default" id="a2r-mH-Iqe">
+        <window title="Fullscreen Controls" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" hasShadow="NO" hidesOnDeactivate="YES" oneShot="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="a2r-mH-Iqe">
             <windowCollectionBehavior key="collectionBehavior" fullScreenAuxiliary="YES" fullScreenDisallowsTiling="YES"/>
             <windowPositionMask key="initialPositionMask" bottomStrut="YES"/>
             <rect key="contentRect" x="376" y="105" width="480" height="80"/>
diff --git a/modules/gui/macosx/VLCFSPanelController.m b/modules/gui/macosx/VLCFSPanelController.m
index 0984fb2..a2e5c98 100644
--- a/modules/gui/macosx/VLCFSPanelController.m
+++ b/modules/gui/macosx/VLCFSPanelController.m
@@ -63,6 +63,9 @@
     [self.window setStyleMask:self.window.styleMask | NSResizableWindowMask];
     [self.window setBackgroundColor:[NSColor clearColor]];
 
+    /* Set autosave name after we changed window mask to resizable */
+    [self.window setFrameAutosaveName:@"VLCFullscreenControls"];
+
 #ifdef MAC_OS_X_VERSION_10_10
     /* Inject correct background view depending on OS support */
     if (OSX_YOSEMITE_OR_HIGHER) {



More information about the vlc-commits mailing list