From 5f8d730703882e1335305a2c43a378f0c4b96e8e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 22 Jan 2012 01:17:21 -0600 Subject: Fix desktop lock --- kdesktop/lock/lockprocess.cc | 2 ++ kdesktop/lock/main.cc | 4 ++-- kdesktop/lockeng.cc | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'kdesktop') diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index 2588bbfea..5acc96e23 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -630,6 +630,8 @@ void LockProcess::startSecureDialog() return; } + setGeometry(0, 0, mRootWidth, mRootHeight); + int ret; SecureDlg inDlg( this ); inDlg.setRetInt(&ret); diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index 2711c36c5..c0b8e2480 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -181,14 +181,14 @@ int main( int argc, char **argv ) rt = process.runSecureDialog(); } else { - return 1; + return 0; } } else { rt = process.defaultSave(); } if (!rt) { - return 1; + return 0; } if( sig ) diff --git a/kdesktop/lockeng.cc b/kdesktop/lockeng.cc index fb0f75447..5307c5c5e 100644 --- a/kdesktop/lockeng.cc +++ b/kdesktop/lockeng.cc @@ -372,6 +372,7 @@ printf("Lock process exited\n\r"); fflush(stdout); } if (mTerminationRequested == true) { abnormalExit = false; + mTerminationRequested = false; } if (abnormalExit == true) { // PROBABLE HACKING ATTEMPT DETECTED -- cgit v1.2.1