|
|
@ -503,6 +503,12 @@ void LockProcess::signalPipeSignal()
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
bool LockProcess::lock()
|
|
|
|
bool LockProcess::lock()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
m_startupStatusDialog = new KSMModalDialog(this);
|
|
|
|
|
|
|
|
m_startupStatusDialog->setStatusMessage(i18n("Securing desktop session").append("..."));
|
|
|
|
|
|
|
|
m_startupStatusDialog->show();
|
|
|
|
|
|
|
|
m_startupStatusDialog->setActiveWindow();
|
|
|
|
|
|
|
|
tqApp->processEvents();
|
|
|
|
|
|
|
|
|
|
|
|
if (startSaver()) {
|
|
|
|
if (startSaver()) {
|
|
|
|
// In case of a forced lock we don't react to events during
|
|
|
|
// In case of a forced lock we don't react to events during
|
|
|
|
// the dead-time to give the screensaver some time to activate.
|
|
|
|
// the dead-time to give the screensaver some time to activate.
|
|
|
@ -966,12 +972,6 @@ void LockProcess::ungrabInput()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
bool LockProcess::startSaver()
|
|
|
|
bool LockProcess::startSaver()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_startupStatusDialog = new KSMModalDialog(this);
|
|
|
|
|
|
|
|
m_startupStatusDialog->setStatusMessage(i18n("Securing desktop session").append("..."));
|
|
|
|
|
|
|
|
m_startupStatusDialog->show();
|
|
|
|
|
|
|
|
m_startupStatusDialog->setActiveWindow();
|
|
|
|
|
|
|
|
tqApp->processEvents();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!child_saver && !grabInput())
|
|
|
|
if (!child_saver && !grabInput())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdWarning(1204) << "LockProcess::startSaver() grabInput() failed!!!!" << endl;
|
|
|
|
kdWarning(1204) << "LockProcess::startSaver() grabInput() failed!!!!" << endl;
|
|
|
|