mirror of https://code.videolan.org/videolan/vlc
macosx/vout provider: also dim keyboard when not using the native fullscreen mode
This commit is contained in:
parent
bf29748e45
commit
a7ff1b7f03
|
@ -469,21 +469,22 @@ int WindowOpen(vout_window_t *p_wnd)
|
|||
{
|
||||
intf_thread_t *p_intf = getIntf();
|
||||
BOOL b_nativeFullscreenMode = var_InheritBool(getIntf(), "macosx-nativefullscreenmode");
|
||||
BOOL b_fullscreen = i_full != 0;
|
||||
|
||||
if (var_InheritBool(p_intf, "macosx-dim-keyboard")) {
|
||||
[_keyboardBacklight switchLightsAsync:!b_fullscreen];
|
||||
}
|
||||
|
||||
if (!p_intf || (!b_nativeFullscreenMode && !p_wnd))
|
||||
return;
|
||||
BOOL b_fullscreen = i_full != 0;
|
||||
|
||||
if (!_playerController.fullscreen != !b_fullscreen) {
|
||||
_playerController.fullscreen = b_fullscreen;
|
||||
}
|
||||
|
||||
VLCVideoWindowCommon *o_current_window = nil;
|
||||
if(p_wnd)
|
||||
if (p_wnd) {
|
||||
o_current_window = [_voutWindows objectForKey:[NSValue valueWithPointer:p_wnd]];
|
||||
|
||||
if (var_InheritBool(p_intf, "macosx-dim-keyboard")) {
|
||||
[_keyboardBacklight switchLightsAsync:!b_fullscreen];
|
||||
}
|
||||
|
||||
if (b_nativeFullscreenMode) {
|
||||
|
|
Loading…
Reference in New Issue