[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:40:16 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 19 13:38:40 2012 +0100| [986cb6be66151a46726c826a8f9d5a17fbc4ab07] | 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
(cherry picked from commit 200a43b8f85c9affb427ee303bbb940ced8eb455)

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

 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