Skip to content

Commit 54b3237

Browse files
deepin-ci-robotyixinshark
authored andcommitted
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#4
1 parent bdd628b commit 54b3237

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/dde-lock/lockworker.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ void LockWorker::initConnections()
135135
m_password.clear();
136136
emit m_model->authFinished(true);
137137
});
138+
139+
#ifdef ENABLE_DSS_SNIPE
140+
connect(m_sessionManagerInter, &SessionManagerInter::LockedChanged, this, [ this ](bool locked) {
141+
qDebug() << "SessionManagerInter::LockedChanged" << locked;
142+
if (locked && !m_model->visible()) {
143+
m_model->showLockScreen();
144+
}
145+
});
146+
#endif
147+
138148
/* org.freedesktop.login1.Session */
139149
connect(m_login1SessionSelf, &Login1SessionSelf::ActiveChanged, this, [this](bool active) {
140150
qCInfo(DDE_SHELL) << "DBus lock service active changed, active: " << active << ", model visible: " << m_model->visible();

0 commit comments

Comments
 (0)