[PATCH weston] desktop-shell: Put monitor to sleep when idle timer expires

Bryce Harrington bryce at osg.samsung.com
Thu Jul 23 10:55:33 PDT 2015


On Tue, Jul 21, 2015 at 02:31:55PM +0300, Pekka Paalanen wrote:
> On Mon, 20 Jul 2015 16:28:13 -0500
> Derek Foreman <derekf at osg.samsung.com> wrote:
> 
> > Removing the screensaver had the accidental side effect of disabling
> > DPMS display shut down.
> > 
> > Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
> > ---
> >  desktop-shell/shell.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
> > index 0137ca3..9e3701f 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 */
> 
> Good catch!
> 
> Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Thanks, pushed:

To ssh://git.freedesktop.org/git/wayland/weston
   3f86e50..004b4a1  master -> master


More information about the wayland-devel mailing list