[vlc-devel] [PATCH v3 2/3] core: Load inhibition plugin for all window types
Marvin Scholz
epirat07 at gmail.com
Mon Mar 4 21:43:42 CET 2019
---
src/video_output/window.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/video_output/window.c b/src/video_output/window.c
index a111d7f4e7c..b33bb811bed 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -71,9 +71,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))
+ if (var_InheritBool(obj, "disable-screensaver"))
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