-rw-r--r-- | core/launcher/desktop.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index da535d9..680cc06 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -238,8 +238,12 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) if ( ke->simpleData.keycode == Key_F34 ) { if ( press ) emit power(); return TRUE; } + if ( ke->simpleData.keycode == Key_SysReq ) { + if ( press ) emit power(); + return TRUE; + } if ( ke->simpleData.keycode == Key_F35 ) { if ( press ) emit backlight(); return TRUE; } @@ -551,9 +555,9 @@ void Desktop::togglePower() if ( wasloggedin ) blankScreen(); system("apm --suspend"); - execAutoStart(); + QWSServer::screenSaverActivate( FALSE ); { QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep QCopEnvelope e("QPE/System", "setBacklight(int)"); @@ -561,9 +565,9 @@ void Desktop::togglePower() } if ( wasloggedin ) { login(TRUE); } - + execAutoStart(); //qcopBridge->closeOpenConnections(); //qDebug("called togglePower()!!!!!!"); } |