]> git.sesse.net Git - vlc/commitdiff
macosx: Hide prefs window if application is inactive
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 15 Feb 2015 10:54:18 +0000 (11:54 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 15 Feb 2015 10:56:14 +0000 (11:56 +0100)
Makes sure the prefs window does not stay on top and hides
all other applications if VLC is inactive.

modules/gui/macosx/prefs.m
modules/gui/macosx/simple_prefs.m

index ee31032f96594d7df92a044ffd421d9a0af4ea69..7645b8f12bb58f9bf89636934c496a0823cb65f2 100644 (file)
@@ -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];
index 66d0c2fb45d198462af789f67010f865f2793005..f2e5ffcc9f46ec790f24f51bc72aef3e7d91c95c 100644 (file)
@@ -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:)];