Commit b41dd2cc authored by David Fuhrmann's avatar 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: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 41f96153
...@@ -179,6 +179,7 @@ static VLCPrefs *_o_sharedMainInstance = nil; ...@@ -179,6 +179,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
if (!OSX_SNOW_LEOPARD) if (!OSX_SNOW_LEOPARD)
[o_prefs_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary]; [o_prefs_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_prefs_window setHidesOnDeactivate:YES];
[self initStrings]; [self initStrings];
[o_prefs_view setBorderType: NSGrooveBorder]; [o_prefs_view setBorderType: NSGrooveBorder];
......
...@@ -247,6 +247,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil; ...@@ -247,6 +247,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
if (!OSX_SNOW_LEOPARD) if (!OSX_SNOW_LEOPARD)
[o_sprefs_win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary]; [o_sprefs_win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_sprefs_win setHidesOnDeactivate:YES];
[o_hotkeys_listbox setTarget:self]; [o_hotkeys_listbox setTarget:self];
[o_hotkeys_listbox setDoubleAction:@selector(hotkeyTableDoubleClick:)]; [o_hotkeys_listbox setDoubleAction:@selector(hotkeyTableDoubleClick:)];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment