aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-03-31 13:54:26 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-03-31 13:54:26 -0500
commit845067b3f37ff48eab3b612d52518e529559b738 (patch)
tree94f6104d71d25f2c000d4fa67880b895ab71c90e /src/snap.cpp
parent4bf70c7afae44d4005d25105690304b4e9e361f3 (diff)
downloadayatana-indicator-datetime-845067b3f37ff48eab3b612d52518e529559b738.tar.gz
ayatana-indicator-datetime-845067b3f37ff48eab3b612d52518e529559b738.tar.bz2
ayatana-indicator-datetime-845067b3f37ff48eab3b612d52518e529559b738.zip
simplify the awake display timeout code
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp7
1 files changed, 2 insertions, 5 deletions
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<uin::Awake>(m_engine->app_name(),
- display_on_seconds);
+ // force the system to stay awake
+ auto awake = std::make_shared<uin::Awake>(m_engine->app_name());
// calendar events are muted in silent mode; alarm clocks never are
std::shared_ptr<uin::Sound> sound;