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>
dev
Derek Foreman 9 years ago committed by Bryce Harrington
parent 3f86e50be0
commit 004b4a1dc1
  1. 2
      desktop-shell/shell.c

@ -5194,6 +5194,8 @@ lock(struct desktop_shell *shell)
wl_list_insert(&shell->compositor->cursor_layer.link, wl_list_insert(&shell->compositor->cursor_layer.link,
&shell->lock_layer.link); &shell->lock_layer.link);
weston_compositor_sleep(shell->compositor);
/* Remove the keyboard focus on all seats. This will be /* Remove the keyboard focus on all seats. This will be
* restored to the workspace's saved state via * restored to the workspace's saved state via
* restore_focus_state when the compositor is unlocked */ * restore_focus_state when the compositor is unlocked */

Loading…
Cancel
Save