From 845067b3f37ff48eab3b612d52518e529559b738 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 31 Mar 2015 13:54:26 -0500 Subject: simplify the awake display timeout code --- src/snap.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/snap.cpp') diff --git a/src/snap.cpp b/src/snap.cpp index 4329eca..e655d2d 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -88,11 +88,8 @@ public: intervention and shouldn't loop the sound. */ const bool interactive = appointment.is_ubuntu_alarm() && m_engine->supports_actions(); - // keep the screen on for the first part of the alarm; - // keep the system awake for the duration of the alarm - constexpr unsigned int display_on_seconds = 60; - auto awake = std::make_shared(m_engine->app_name(), - display_on_seconds); + // force the system to stay awake + auto awake = std::make_shared(m_engine->app_name()); // calendar events are muted in silent mode; alarm clocks never are std::shared_ptr sound; -- cgit v1.2.3