author | harlekin <harlekin> | 2002-03-19 01:25:52 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-03-19 01:25:52 (UTC) |
commit | 7c64492d86e8ddc90e80c380d53e2744869397cf (patch) (unidiff) | |
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 | |||
@@ -544,44 +544,44 @@ static void darkScreen() | |||
544 | { | 544 | { |
545 | extern void qpe_setBacklight(int); | 545 | extern void qpe_setBacklight(int); |
546 | qpe_setBacklight(0); // force off | 546 | qpe_setBacklight(0); // force off |
547 | } | 547 | } |
548 | 548 | ||
549 | 549 | ||
550 | void Desktop::togglePower() | 550 | void Desktop::togglePower() |
551 | { | 551 | { |
552 | bool wasloggedin = loggedin; | 552 | bool wasloggedin = loggedin; |
553 | loggedin=0; | 553 | loggedin=0; |
554 | darkScreen(); | 554 | darkScreen(); |
555 | if ( wasloggedin ) | 555 | if ( wasloggedin ) |
556 | blankScreen(); | 556 | blankScreen(); |
557 | 557 | ||
558 | system("apm --suspend"); | 558 | system("apm --suspend"); |
559 | 559 | ||
560 | sleep(2); | 560 | |
561 | 561 | ||
562 | QWSServer::screenSaverActivate( FALSE ); | 562 | QWSServer::screenSaverActivate( FALSE ); |
563 | { | 563 | { |
564 | QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep | 564 | QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep |
565 | QCopEnvelope e("QPE/System", "setBacklight(int)"); | 565 | QCopEnvelope e("QPE/System", "setBacklight(int)"); |
566 | e << -3; // Force on | 566 | e << -3; // Force on |
567 | } | 567 | } |
568 | if ( wasloggedin ) { | 568 | if ( wasloggedin ) { |
569 | login(TRUE); | 569 | login(TRUE); |
570 | } | 570 | } |
571 | 571 | sleep(1); | |
572 | execAutoStart(); | 572 | execAutoStart(); |
573 | //qcopBridge->closeOpenConnections(); | 573 | //qcopBridge->closeOpenConnections(); |
574 | //qDebug("called togglePower()!!!!!!"); | 574 | //qDebug("called togglePower()!!!!!!"); |
575 | } | 575 | } |
576 | 576 | ||
577 | void Desktop::toggleLight() | 577 | void Desktop::toggleLight() |
578 | { | 578 | { |
579 | QCopEnvelope e("QPE/System", "setBacklight(int)"); | 579 | QCopEnvelope e("QPE/System", "setBacklight(int)"); |
580 | e << -2; // toggle | 580 | e << -2; // toggle |
581 | } | 581 | } |
582 | 582 | ||
583 | void Desktop::toggleSymbolInput() | 583 | void Desktop::toggleSymbolInput() |
584 | { | 584 | { |
585 | tb->toggleSymbolInput(); | 585 | tb->toggleSymbolInput(); |
586 | } | 586 | } |
587 | 587 | ||