diff options
Diffstat (limited to 'UnityCore')
| -rw-r--r-- | UnityCore/GnomeSessionManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/UnityCore/GnomeSessionManager.cpp b/UnityCore/GnomeSessionManager.cpp index 4fd67807f..4c59ece30 100644 --- a/UnityCore/GnomeSessionManager.cpp +++ b/UnityCore/GnomeSessionManager.cpp @@ -117,8 +117,9 @@ GnomeManager::Impl::Impl(GnomeManager* manager, bool test_mode) login_proxy_->ConnectProperty("Active", [this] (GVariant* variant) { bool active = glib::Variant(variant).GetBool(); - manager_->screensaver_requested.emit(!active); manager_->is_session_active.changed.emit(active); + if (active) + manager_->screensaver_requested.emit(false); }); manager_->is_session_active.SetGetterFunction([this] { |
