Fixed desktop locking code. This relates to bug 2603 and fixes the locking-after-suspend issue when the screensaver is also enabled.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 8 years ago
parent 71bd29a534
commit ab959b43ca

@ -283,7 +283,7 @@ void SaverEngine::lockScreen(bool DCOP)
}
bool ok = true;
if (mState != Saving)
if (mState == Waiting)
{
ok = startLockProcess( ForceLock );
// It takes a while for kdesktop_lock to start and lock the screen.

Loading…
Cancel
Save