From 42aa5f9411b55f7dd3c66f215db9080cc76e112b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 6 Nov 2015 12:47:25 -0500 Subject: Couple minor changes to the screensaver functionality: Ensure the SSBaseWidget background color is set properly (so it can now be different from the main LScreenSaver background - as designed), set the main background color gray (for now - until we add custom backgrounds in), and disable the debugging on the main screensaver class (no need for all the event debugging info to be seen any more - is working fine). --- lumina-wm-INCOMPLETE/LScreenSaver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lumina-wm-INCOMPLETE/LScreenSaver.cpp') diff --git a/lumina-wm-INCOMPLETE/LScreenSaver.cpp b/lumina-wm-INCOMPLETE/LScreenSaver.cpp index 7b048285..7a2105f8 100644 --- a/lumina-wm-INCOMPLETE/LScreenSaver.cpp +++ b/lumina-wm-INCOMPLETE/LScreenSaver.cpp @@ -8,7 +8,7 @@ #include #include -#define DEBUG 1 +#define DEBUG 0 LScreenSaver::LScreenSaver() : QWidget(0,Qt::BypassWindowManagerHint | Qt::WindowStaysOnTopHint){ starttimer = new QTimer(this); @@ -23,7 +23,8 @@ LScreenSaver::LScreenSaver() : QWidget(0,Qt::BypassWindowManagerHint | Qt::Windo settings = new QSettings("LuminaDE","lumina-screensaver",this); SSRunning = SSLocked = updating = false; this->setObjectName("LSCREENSAVERBASE"); - this->setStyleSheet("LScreenSaver#LSCREENSAVERBASE{ background: black; }"); + this->setStyleSheet("LScreenSaver#LSCREENSAVERBASE{ background: grey; }"); + this->setMouseTracking(true); connect(starttimer, SIGNAL(timeout()), this, SLOT(ShowScreenSaver()) ); connect(locktimer, SIGNAL(timeout()), this, SLOT(LockScreen()) ); connect(hidetimer, SIGNAL(timeout()), this, SLOT(HideLockScreen()) ); -- cgit