summaryrefslogtreecommitdiffstats
path: root/kdesktop/lockeng.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-04-08 15:27:25 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-04-08 15:27:25 -0500
commit751c96f9b1fc01675a1a9d34831104f98adfd84f (patch)
tree73c9105e26780f965baa7a1314a59035f792c0a5 /kdesktop/lockeng.h
parenta17bfb0b96f5b255f41d03c3143d1eca04c88e36 (diff)
downloadtdebase-751c96f9b1fc01675a1a9d34831104f98adfd84f.tar.gz
tdebase-751c96f9b1fc01675a1a9d34831104f98adfd84f.zip
Eliminate usleep() loop during kdesktop startup
Do not switch desktops if lock fails to engage
Diffstat (limited to 'kdesktop/lockeng.h')
-rw-r--r--kdesktop/lockeng.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kdesktop/lockeng.h b/kdesktop/lockeng.h
index e7be7a06e..782f779a3 100644
--- a/kdesktop/lockeng.h
+++ b/kdesktop/lockeng.h
@@ -89,7 +89,7 @@ public:
* Called by KDesktop to wait for saver engage
* @internal
*/
- void waitForLockEngage();
+ bool waitForLockEngage();
public slots:
void slotLockProcessWaiting();
@@ -125,6 +125,7 @@ protected:
enum SaverState { Waiting, Preparing, Engaging, Saving };
enum LockType { DontLock, DefaultLock, ForceLock, SecureDialog };
bool startLockProcess( LockType lock_type );
+ bool waitForLockProcessStart();
void stopLockProcess();
bool handleKeyPress(XKeyEvent *xke);
void processLockTransactions();