shell: Set the DPMS state if the screensaver fails to launch or dies
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 15 Feb 2013 16:44:19 +0000 (18:44 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 18 Feb 2013 22:39:40 +0000 (17:39 -0500)
commit91fb4a9f8eed066801fdf393bbaa33db5f07761f
treebc70e469630f87d01fc5018ac7a8310d919911ca
parent04287fd69a6e99e5866e890e01372b1b00e70902
shell: Set the DPMS state if the screensaver fails to launch or dies

The lock hook in desktop-shell only changes the DPMS state the second
time it is called, because during the first time it launches the
screensaver and wakes the compositor again when the screensaver surface
is configured. However, if the screensaver fails to launch, the output
is left in an enabled state, even thought there's no content being
displayed on the screen.

Fix this by disabling the outputs when the screensaver dies if the
shell is still locked.

https://bugs.freedesktop.org/show_bug.cgi?id=60084
src/shell.c