mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-03 11:18:05 +02:00
shell: Go straight to sleep if the sceensaver isn't configured
If the screensaver path is not set, nothing would set the compositor state to sleeping. In that case, outpus DPMS state was never set to off.
This commit is contained in:
parent
b17537e2c5
commit
dda9d78ec9
1 changed files with 3 additions and 1 deletions
|
|
@ -2167,8 +2167,10 @@ launch_screensaver(struct desktop_shell *shell)
|
|||
if (shell->screensaver.binding)
|
||||
return;
|
||||
|
||||
if (!shell->screensaver.path)
|
||||
if (!shell->screensaver.path) {
|
||||
weston_compositor_sleep(shell->compositor);
|
||||
return;
|
||||
}
|
||||
|
||||
if (shell->screensaver.process.pid != 0) {
|
||||
weston_log("old screensaver still running\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue