[vlc-commits] window: enable inhibit on Wayland
Rémi Denis-Courmont
git at videolan.org
Wed Jan 24 21:32:52 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 24 22:30:39 2018 +0200| [c5b3db14d47bce8288b5d75eacac396719f28974] | committer: Rémi Denis-Courmont
window: enable inhibit on Wayland
The existing D-Bus and XDG plugins are windowing system-agnostic.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5b3db14d47bce8288b5d75eacac396719f28974
---
src/video_output/window.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/video_output/window.c b/src/video_output/window.c
index 0eb055a47f..36aaa9d046 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -78,7 +78,8 @@ 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_XID || window->type == VOUT_WINDOW_TYPE_HWND
+ || window->type == VOUT_WINDOW_TYPE_WAYLAND))
{
w->inhibit = vlc_inhibit_Create(VLC_OBJECT (window));
if (w->inhibit != NULL)
More information about the vlc-commits
mailing list