[vlc-commits] macosx/vout provider: also dim keyboard when not using the native fullscreen mode
Felix Paul Kühne
git at videolan.org
Sat Jun 1 14:35:02 CEST 2019
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun 1 12:49:44 2019 +0200| [a7ff1b7f035777b136e75d1b3a631bd5fa6da2fa] | committer: Felix Paul Kühne
macosx/vout provider: also dim keyboard when not using the native fullscreen mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7ff1b7f035777b136e75d1b3a631bd5fa6da2fa
---
modules/gui/macosx/windows/video/VLCVideoOutputProvider.m | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/windows/video/VLCVideoOutputProvider.m b/modules/gui/macosx/windows/video/VLCVideoOutputProvider.m
index b9acdc0cb8..5e77c1a85c 100644
--- a/modules/gui/macosx/windows/video/VLCVideoOutputProvider.m
+++ b/modules/gui/macosx/windows/video/VLCVideoOutputProvider.m
@@ -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) {
More information about the vlc-commits
mailing list