From 004b4a1dc165f57a9d24fa0cd8ed5737f9690ed0 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 20 Jul 2015 16:28:13 -0500 Subject: [PATCH] desktop-shell: Put monitor to sleep when idle timer expires Removing the screensaver had the accidental side effect of disabling DPMS display shut down. Signed-off-by: Derek Foreman Reviewed-by: Pekka Paalanen Reviewed-by: Bryce Harrington --- desktop-shell/shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 0137ca31..9e3701fc 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -5194,6 +5194,8 @@ lock(struct desktop_shell *shell) wl_list_insert(&shell->compositor->cursor_layer.link, &shell->lock_layer.link); + weston_compositor_sleep(shell->compositor); + /* Remove the keyboard focus on all seats. This will be * restored to the workspace's saved state via * restore_focus_state when the compositor is unlocked */