-rw-r--r-- | core/launcher/desktop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 547daa9..64043e7 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -556,9 +556,9 @@ void Desktop::togglePower() blankScreen(); system("apm --suspend"); - sleep(2); + QWSServer::screenSaverActivate( FALSE ); { QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep @@ -567,9 +567,9 @@ void Desktop::togglePower() } if ( wasloggedin ) { login(TRUE); } - + sleep(1); execAutoStart(); //qcopBridge->closeOpenConnections(); //qDebug("called togglePower()!!!!!!"); } |