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>
(cherry picked from commit ab959b43ca)
pull/182/head
Michele Calgaro 8 years ago
parent 8425cf8914
commit 6c453ce30e

@ -202,7 +202,7 @@ void SaverEngine::lock()
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