{{newin|[[0.10.0]]|100|type=function}}
Sets whether the display is allowed to sleep while the program is running.

Display sleep is disabled by default. Some types of input (e.g. joystick button presses) might not prevent the display from sleeping, if display sleep is allowed.
== Function ==
=== Synopsis ===
<source lang="lua">
love.window.setDisplaySleepEnabled( enable )
</source>
=== Arguments ===
{{param|boolean|enable|True to enable system display sleep, false to disable it.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::love.window]]
* [[love.window.isDisplaySleepEnabled]]
[[Category:Functions]]
{{#set:Description=Sets whether the display is allowed to sleep while the program is running.}}
== Other Languages ==
{{i18n|love.window.setDisplaySleepEnabled}}