26 lines
968 B
Diff
26 lines
968 B
Diff
diff --git a/ksldapp.cpp b/ksldapp.cpp
|
|
--- a/ksldapp.cpp
|
|
+++ b/ksldapp.cpp
|
|
@@ -607,15 +607,19 @@
|
|
return;
|
|
}
|
|
m_lockWindow->setGlobalAccel(m_globalAccel);
|
|
- connect(m_lockWindow, &AbstractLocker::userActivity, this,
|
|
+ connect(m_lockWindow, &AbstractLocker::userActivity, m_lockWindow,
|
|
[this]() {
|
|
if (isGraceTime()) {
|
|
unlock();
|
|
}
|
|
},
|
|
Qt::QueuedConnection
|
|
);
|
|
- connect(m_lockWindow, &AbstractLocker::lockWindowShown, this, &KSldApp::lockScreenShown, Qt::QueuedConnection);
|
|
+ connect(m_lockWindow, &AbstractLocker::lockWindowShown, m_lockWindow,
|
|
+ [this] {
|
|
+ lockScreenShown();
|
|
+ }
|
|
+ , Qt::QueuedConnection);
|
|
connect(m_waylandServer, &WaylandServer::x11WindowAdded, m_lockWindow, &AbstractLocker::addAllowedWindow);
|
|
}
|
|
m_lockWindow->showLockWindow();
|