diff options
author | Timothy Pearson <[email protected]> | 2015-04-08 15:27:25 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2015-04-08 15:27:25 -0500 |
commit | 751c96f9b1fc01675a1a9d34831104f98adfd84f (patch) | |
tree | 73c9105e26780f965baa7a1314a59035f792c0a5 /kdesktop/krootwm.cc | |
parent | a17bfb0b96f5b255f41d03c3143d1eca04c88e36 (diff) | |
download | tdebase-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/krootwm.cc')
-rw-r--r-- | kdesktop/krootwm.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kdesktop/krootwm.cc b/kdesktop/krootwm.cc index d12e024ab..72b9f0f5d 100644 --- a/kdesktop/krootwm.cc +++ b/kdesktop/krootwm.cc @@ -911,7 +911,9 @@ void KRootWm::doNewSession( bool lock ) if (lock) { m_pSaver->lockScreen(); - m_pSaver->waitForLockEngage(); + if (!m_pSaver->waitForLockEngage()) { + return; + } } DM().startReserve(); |