summaryrefslogtreecommitdiff
path: root/desktop-shell
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-07-20 16:28:13 -0500
committerBryce Harrington <bryce@osg.samsung.com>2015-07-23 10:54:47 -0700
commit004b4a1dc165f57a9d24fa0cd8ed5737f9690ed0 (patch)
tree91ef57f2d29f3b4f13e2298a7a856b45f7df8170 /desktop-shell
parent3f86e50be01dd797a7eb1988abe5c5c9951e7688 (diff)
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 <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'desktop-shell')
-rw-r--r--desktop-shell/shell.c2
1 files changed, 2 insertions, 0 deletions
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 */