[vlc-commits] window: enable inhibit on Wayland

Rémi Denis-Courmont git at videolan.org
Wed Jan 24 21:33:28 CET 2018


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 24 22:30:39 2018 +0200| [130bbd2c2dd8c7385da98e843c9bdcea8685d8da] | committer: Rémi Denis-Courmont

window: enable inhibit on Wayland

The existing D-Bus and XDG plugins are windowing system-agnostic.

(cherry picked from commit c5b3db14d47bce8288b5d75eacac396719f28974)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=130bbd2c2dd8c7385da98e843c9bdcea8685d8da
---

 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