[vlc-commits] macosx: Hide prefs window if application is inactive

David Fuhrmann git at videolan.org
Sun Feb 15 11:55:21 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Feb 15 11:54:18 2015 +0100| [edf308064f80c9b6542f40f79f750b6206f7a643] | committer: David Fuhrmann

macosx: Hide prefs window if application is inactive

Makes sure the prefs window does not stay on top and hides
all other applications if VLC is inactive.

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

 modules/gui/macosx/prefs.m        |    1 +
 modules/gui/macosx/simple_prefs.m |    1 +
 2 files changed, 2 insertions(+)

diff --git a/modules/gui/macosx/prefs.m b/modules/gui/macosx/prefs.m
index ee31032..7645b8f 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -179,6 +179,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
 
     if (!OSX_SNOW_LEOPARD)
         [o_prefs_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
+    [o_prefs_window setHidesOnDeactivate:YES];
 
     [self initStrings];
     [o_prefs_view setBorderType: NSGrooveBorder];
diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 66d0c2f..f2e5ffc 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -229,6 +229,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
 
     if (!OSX_SNOW_LEOPARD)
         [o_sprefs_win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
+    [o_sprefs_win setHidesOnDeactivate:YES];
 
     [o_hotkeys_listbox setTarget:self];
     [o_hotkeys_listbox setDoubleAction:@selector(hotkeyTableDoubleClick:)];



More information about the vlc-commits mailing list