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

David Fuhrmann git at videolan.org
Sun Feb 15 11:56:46 CET 2015


vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Feb 15 11:54:18 2015 +0100| [b41dd2cca7291fc44e0f0319c2b1eecf99018615] | 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.

(cherry picked from commit edf308064f80c9b6542f40f79f750b6206f7a643)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

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

 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 98f315d..ddc0957 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -247,6 +247,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