From 82901d366a7c6bfa4d4b7510f292abccc58b33d6 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 6 May 2020 16:03:47 -0400 Subject: Ensure that the xorg DPMS system is only enabled when the screensaver comes on. It does not seem to have the same input/activity checks that the screensaver uses --- src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src-qt5/core/lumina-desktop/src-screensaver') diff --git a/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp b/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp index 850f14b4..6ccd8420 100644 --- a/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp +++ b/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp @@ -66,6 +66,7 @@ void LScreenSaver::UpdateTimers(){ // =========== void LScreenSaver::start(){ reloadSettings(); //setup all the initial time frames + LSession::handle()->XCB->disableDPMS(); //disable this initially - this only gets turned on when the screensaver activates starttimer->start(); checkTimer->start(); } @@ -128,6 +129,7 @@ void LScreenSaver::ShowScreenSaver(){ //QApplication::setOverrideCursor(QCursor::BlankCursor); SSRunning = true; updating = true; + LSession::handle()->XCB->enableDPMS(); //Now remove any current Base widgets (prevent any lingering painting between sessions) for(int i=0; iXCB->disableDPMS(); //if(cBright>0){ LOS::setScreenBrightness(cBright); } //return to current brightness this->releaseKeyboard(); if(!SSLocked){ -- cgit