aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/SystemWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2020-05-04 09:59:13 -0400
committerKen Moore <moorekou@gmail.com>2020-05-04 10:00:26 -0400
commitf747ac87e16ae16343bcc6c40327eca92cffca07 (patch)
tree9ab2dd1b66f091780960f645f9f786ea496bd406 /src-qt5/core/lumina-desktop/SystemWindow.cpp
parentMerge pull request #725 from JohnBlood/patch-1 (diff)
downloadlumina-f747ac87e16ae16343bcc6c40327eca92cffca07.tar.gz
lumina-f747ac87e16ae16343bcc6c40327eca92cffca07.tar.bz2
lumina-f747ac87e16ae16343bcc6c40327eca92cffca07.zip
Get the screensaver system up and running.
The lockscreen prompt is disabled at the moment while testing some input detection mechanisms (unlock button just always works without verifying password)
Diffstat (limited to 'src-qt5/core/lumina-desktop/SystemWindow.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/SystemWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/SystemWindow.cpp b/src-qt5/core/lumina-desktop/SystemWindow.cpp
index bfad961d..6a4172d3 100644
--- a/src-qt5/core/lumina-desktop/SystemWindow.cpp
+++ b/src-qt5/core/lumina-desktop/SystemWindow.cpp
@@ -105,7 +105,8 @@ void SystemWindow::sysSuspend(){
this->hide();
LSession::processEvents();
//Make sure to lock the system first (otherwise anybody can access it again)
- LUtils::runCmd("xscreensaver-command -lock");
+ LSession::handle()->LockScreen();
+ //LUtils::runCmd("xscreensaver-command -lock");
//Now suspend the system
LOS::systemSuspend();
}
@@ -114,5 +115,6 @@ void SystemWindow::sysLock(){
this->hide();
LSession::processEvents();
qDebug() << "Locking the desktop...";
- QProcess::startDetached("xscreensaver-command -lock");
+ QTimer::singleShot(30,LSession::handle(), SLOT(LockScreen()) );
+ //QProcess::startDetached("xscreensaver-command -lock");
}
bgstack15