|
|
@ -160,10 +160,10 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
|
|
|
|
if (sdmode == KApplication::ShutdownModeDefault)
|
|
|
|
if (sdmode == KApplication::ShutdownModeDefault)
|
|
|
|
sdmode = KApplication::ShutdownModeInteractive;
|
|
|
|
sdmode = KApplication::ShutdownModeInteractive;
|
|
|
|
|
|
|
|
|
|
|
|
// shall we show a nice fancy logout screen?
|
|
|
|
// shall we show a logout status dialog box?
|
|
|
|
bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true);
|
|
|
|
bool showLogoutStatusDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showLogoutStatusDlg", true);
|
|
|
|
|
|
|
|
|
|
|
|
if (showFancyLogout) {
|
|
|
|
if (showLogoutStatusDlg) {
|
|
|
|
KSMShutdownIPFeedback::start();
|
|
|
|
KSMShutdownIPFeedback::start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -204,7 +204,7 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
|
|
|
|
|
|
|
|
|
|
|
|
// Set the real desktop background to black so that exit looks
|
|
|
|
// Set the real desktop background to black so that exit looks
|
|
|
|
// clean regardless of what was on "our" desktop.
|
|
|
|
// clean regardless of what was on "our" desktop.
|
|
|
|
if (!showFancyLogout) {
|
|
|
|
if (!showLogoutStatusDlg) {
|
|
|
|
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black );
|
|
|
|
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
state = Shutdown;
|
|
|
|
state = Shutdown;
|
|
|
@ -244,7 +244,7 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
|
|
|
|
completeShutdownOrCheckpoint();
|
|
|
|
completeShutdownOrCheckpoint();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if (showFancyLogout) {
|
|
|
|
if (showLogoutStatusDlg) {
|
|
|
|
KSMShutdownIPFeedback::stop();
|
|
|
|
KSMShutdownIPFeedback::stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -494,8 +494,8 @@ void KSMServer::completeShutdownOrCheckpoint()
|
|
|
|
if ( waitForPhase2 )
|
|
|
|
if ( waitForPhase2 )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true);
|
|
|
|
bool showLogoutStatusDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showLogoutStatusDlg", true);
|
|
|
|
if (showFancyLogout && state != Checkpoint) {
|
|
|
|
if (showLogoutStatusDlg && state != Checkpoint) {
|
|
|
|
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user
|
|
|
|
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user
|
|
|
|
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP();
|
|
|
|
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP();
|
|
|
|
while (!KSMShutdownIPFeedback::ispainted()) {
|
|
|
|
while (!KSMShutdownIPFeedback::ispainted()) {
|
|
|
|