shell: Use weston_compositor_sleep() instead of setting DPMS state
This should have been changed when the weston_compositor_sleep() entry point was added.
This commit is contained in:
committed by
Kristian Høgsberg
parent
a4575634f4
commit
b17537e2c5
+1
-4
@@ -2154,14 +2154,11 @@ handle_screensaver_sigchld(struct weston_process *proc, int status)
|
|||||||
{
|
{
|
||||||
struct desktop_shell *shell =
|
struct desktop_shell *shell =
|
||||||
container_of(proc, struct desktop_shell, screensaver.process);
|
container_of(proc, struct desktop_shell, screensaver.process);
|
||||||
struct weston_output *output;
|
|
||||||
|
|
||||||
proc->pid = 0;
|
proc->pid = 0;
|
||||||
|
|
||||||
if (shell->locked)
|
if (shell->locked)
|
||||||
wl_list_for_each(output, &shell->compositor->output_list, link)
|
weston_compositor_sleep(shell->compositor);
|
||||||
if (output->set_dpms)
|
|
||||||
output->set_dpms(output, WESTON_DPMS_STANDBY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user