summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2017-01-04 18:46:23 +0100
committerAndrea Azzarone <azzaronea@gmail.com>2017-01-04 18:46:23 +0100
commit97f2a732767c9bf89f005ca0474e0e0697d53c68 (patch)
tree94ba6d9a445f0c158f11e5cf1f66eada1411c8db /plugins/unityshell
parentc43c75609ecc28aadfee4d5ef49cf657b9c5fa4a (diff)
Create session manager in ctor.
(bzr r4213.2.4)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 015d48d49..ad9207c72 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -197,6 +197,7 @@ UnityScreen::UnityScreen(CompScreen* screen)
, menus_(std::make_shared<menu::Manager>(std::make_shared<indicator::DBusIndicators>(), std::make_shared<key::GnomeGrabber>()))
, deco_manager_(std::make_shared<decoration::Manager>(menus_))
, debugger_(this)
+ , session_(std::make_shared<session::GnomeManager>())
, needsRelayout(false)
, super_keypressed_(false)
, newFocusedWindow(nullptr)
@@ -4119,7 +4120,6 @@ void UnityScreen::InitUnityComponents()
ShowFirstRunHints();
// Setup Session Controller
- session_ = std::make_shared<session::GnomeManager>();
session_->lock_requested.connect(sigc::mem_fun(this, &UnityScreen::OnLockScreenRequested));
session_->prompt_lock_requested.connect(sigc::mem_fun(this, &UnityScreen::OnLockScreenRequested));
session_->locked.connect(sigc::mem_fun(this, &UnityScreen::OnScreenLocked));