aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2020-05-05 16:22:26 -0400
committerKen Moore <moorekou@gmail.com>2020-05-05 16:22:26 -0400
commit3b5852b8790e2b6bf85e21b9e971ec79db7206b9 (patch)
tree8c97ad93167594d1ea2f6fe64cfed81e5b74d63a
parentGet the screensaver system up and running. (diff)
downloadlumina-3b5852b8790e2b6bf85e21b9e971ec79db7206b9.tar.gz
lumina-3b5852b8790e2b6bf85e21b9e971ec79db7206b9.tar.bz2
lumina-3b5852b8790e2b6bf85e21b9e971ec79db7206b9.zip
Ensure the desktop window itself does not stop the SS from triggering
-rw-r--r--src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp b/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp
index 41ee7c4a..850f14b4 100644
--- a/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp
+++ b/src-qt5/core/lumina-desktop/src-screensaver/LScreenSaver.cpp
@@ -53,7 +53,9 @@ void LScreenSaver::UpdateTimers(){
if(!SSRunning && !SSLocked && (starttimer->interval() > 1000) ){
//time to SS start
- if(LSession::handle()->XCB->WindowIsFullscreen(LSession::handle()->XCB->WM_Get_Active_Window()) ){ starttimer->start(); } //do not start if current window is fullscreen (videos, movies, etc)
+ WId active = LSession::handle()->XCB->WM_Get_Active_Window();
+ bool skip = (LSession::handle()->XCB->WindowName(active) != "Lumina Desktop Environment") && LSession::handle()->XCB->WindowIsFullscreen(active);
+ if(!skip){ starttimer->start(); } //do not start if current window is fullscreen (videos, movies, etc)
}
else if( SSRunning && !SSLocked && (locktimer->interval() > 1000 ) ){ locktimer->start(); } //time to lock
else if( !SSRunning && SSLocked ){ hidetimer->start(); } //time to hide lock screen
bgstack15