mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-04 20:20:20 +01:00
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>
This commit is contained in:
parent
3f86e50be0
commit
004b4a1dc1
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue