author | harlekin <harlekin> | 2002-03-19 01:25:52 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-03-19 01:25:52 (UTC) |
commit | 7c64492d86e8ddc90e80c380d53e2744869397cf (patch) (side-by-side diff) | |
tree | 430e49fa104ffdacdb56e817cb48ccf6002550f9 | |
parent | 3698b59946936e76687850fde92c45989320e7b0 (diff) | |
download | opie-7c64492d86e8ddc90e80c380d53e2744869397cf.zip opie-7c64492d86e8ddc90e80c380d53e2744869397cf.tar.gz opie-7c64492d86e8ddc90e80c380d53e2744869397cf.tar.bz2 |
again
-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 @@ -536,60 +536,60 @@ static void blankScreen() QGfx* g = qt_screen->screenGfx(); g->fillRect(0,0,qt_screen->width(),qt_screen->height()); delete g; */ blanked = TRUE; } static void darkScreen() { extern void qpe_setBacklight(int); qpe_setBacklight(0); // force off } void Desktop::togglePower() { bool wasloggedin = loggedin; loggedin=0; darkScreen(); if ( wasloggedin ) blankScreen(); system("apm --suspend"); - sleep(2); + QWSServer::screenSaverActivate( FALSE ); { QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep QCopEnvelope e("QPE/System", "setBacklight(int)"); e << -3; // Force on } if ( wasloggedin ) { login(TRUE); } - + sleep(1); execAutoStart(); //qcopBridge->closeOpenConnections(); //qDebug("called togglePower()!!!!!!"); } void Desktop::toggleLight() { QCopEnvelope e("QPE/System", "setBacklight(int)"); e << -2; // toggle } void Desktop::toggleSymbolInput() { tb->toggleSymbolInput(); } void Desktop::toggleNumLockState() { tb->toggleNumLockState(); } void Desktop::toggleCapsLockState() { tb->toggleCapsLockState(); |