[vlc-commits] macosx: make sure to always exit the fullscreen mode on Lion when terminating to prevent ugly artifacts on the next launch

Felix Paul Kühne git at videolan.org
Sun Feb 19 13:38:48 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 19 13:38:40 2012 +0100| [200a43b8f85c9affb427ee303bbb940ced8eb455] | committer: Felix Paul Kühne

macosx: make sure to always exit the fullscreen mode on Lion when terminating to prevent ugly artifacts on the next launch

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

 modules/gui/macosx/intf.m |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index b635111..3d524a7 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -696,6 +696,13 @@ static VLCMain *_o_sharedMainInstance = nil;
     playlist_t * p_playlist = pl_Get( p_intf );
     int returnedValue = 0;
 
+    /* always exit fullscreen on quit, otherwise we get ugly artifacts on the next launch */
+    if (OSX_LION && b_nativeFullscreenMode)
+    {
+        [o_mainwindow toggleFullScreen: self];
+        [NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
+    }
+
     /* Save some interface state in configuration, at module quit */
     config_PutInt( p_intf, "random", var_GetBool( p_playlist, "random" ) );
     config_PutInt( p_intf, "loop", var_GetBool( p_playlist, "loop" ) );



More information about the vlc-commits mailing list