[vlc-devel] [PATCH 2/3] core: Load inhibition plugin on macOS

Marvin Scholz epirat07 at gmail.com
Sat Mar 2 11:38:23 CET 2019


---
 src/video_output/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/window.c b/src/video_output/window.c
index a111d7f4e7c..684ca3609dc 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -73,7 +73,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj, const char *module,
     /* Hook for screensaver inhibition */
     if (var_InheritBool(obj, "disable-screensaver") &&
         (window->type == VOUT_WINDOW_TYPE_XID || window->type == VOUT_WINDOW_TYPE_HWND
-      || window->type == VOUT_WINDOW_TYPE_WAYLAND))
+      || window->type == VOUT_WINDOW_TYPE_WAYLAND || window->type == VOUT_WINDOW_TYPE_NSOBJECT))
         w->inhibit = vlc_inhibit_Create(VLC_OBJECT(window));
     else
         w->inhibit = NULL;
-- 
2.17.2 (Apple Git-113)



More information about the vlc-devel mailing list