From dda9d78ec9d998647cdda7d35e5adcafe8f2d16e Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Fri, 22 Feb 2013 14:16:19 +0200 Subject: [PATCH] shell: Go straight to sleep if the sceensaver isn't configured If the screensaver path is not set, nothing would set the compositor state to sleeping. In that case, outpus DPMS state was never set to off. --- src/shell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 93b46e1a..65730381 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2167,8 +2167,10 @@ launch_screensaver(struct desktop_shell *shell) if (shell->screensaver.binding) return; - if (!shell->screensaver.path) + if (!shell->screensaver.path) { + weston_compositor_sleep(shell->compositor); return; + } if (shell->screensaver.process.pid != 0) { weston_log("old screensaver still running\n");