summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/lockprocess.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-23 21:54:28 -0500
committerTimothy Pearson <[email protected]>2012-05-23 21:54:28 -0500
commit345d1e78808b657437e48ea299fb9af557ab111e (patch)
tree3e5018f72ae45deded3ee5a1cded87294db533eb /kdesktop/lock/lockprocess.cc
parentde4e7b41598b4c8db0948e4c2c216d73e952f7bb (diff)
downloadtdebase-345d1e78808b657437e48ea299fb9af557ab111e.tar.gz
tdebase-345d1e78808b657437e48ea299fb9af557ab111e.zip
Fix kdesktop_lock not reacting to settings changes until it is restarted
Diffstat (limited to 'kdesktop/lock/lockprocess.cc')
-rw-r--r--kdesktop/lock/lockprocess.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index c6935c9b5..28a46b47b 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -157,7 +157,7 @@ trinity_desktop_lock_autohide_lockdlg = TRUE;
// starting screensaver hacks, and password entry.
//
LockProcess::LockProcess()
- : TQWidget(0L, "saver window", (trinity_desktop_lock_use_system_modal_dialogs?((WFlags)(WStyle_StaysOnTop|WStyle_Customize|WStyle_NoBorder)):((WFlags)WX11BypassWM))),
+ : TQWidget(0L, "saver window", ((WFlags)(WStyle_StaysOnTop|WStyle_Customize|WStyle_NoBorder))),
mOpenGLVisual(0),
mParent(0),
mShowLockDateTime(false),
@@ -344,6 +344,10 @@ LockProcess::~LockProcess()
//
void LockProcess::init(bool child, bool useBlankOnly)
{
+ if (!trinity_desktop_lock_use_system_modal_dialogs) {
+ setWFlags((WFlags)WX11BypassWM);
+ }
+
child_saver = child;
mUseBlankOnly = useBlankOnly;
@@ -1260,12 +1264,13 @@ bool LockProcess::startSaver()
// Try to get the root pixmap
if (!m_rootPixmap) m_rootPixmap = new KRootPixmap(this);
m_rootPixmap->setCustomPainting(true);
+ m_rootPixmap->start();
// Sometimes KRootPixmap fails...make sure the desktop is hidden regardless
if (!mEnsureScreenHiddenTimer) {
mEnsureScreenHiddenTimer = new TQTimer( this );
connect( mEnsureScreenHiddenTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotForcePaintBackground()) );
+ mEnsureScreenHiddenTimer->start(2000, true);
}
- mEnsureScreenHiddenTimer->start(2000, true);
}
if (trinity_desktop_lock_in_sec_dlg == FALSE) {
@@ -1818,7 +1823,13 @@ void LockProcess::slotForcePaintBackground()
void LockProcess::slotPaintBackground(const TQPixmap &rpm)
{
- mEnsureScreenHiddenTimer->stop();
+ if (mEnsureScreenHiddenTimer) {
+ mEnsureScreenHiddenTimer->stop();
+ }
+ else {
+ mEnsureScreenHiddenTimer = new TQTimer( this );
+ connect( mEnsureScreenHiddenTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotForcePaintBackground()) );
+ }
TQPixmap pm = rpm;