Handle screen locking internally on user switch

This removes an external dcop call
pull/2/head
Timothy Pearson 9 years ago
parent 85126bf580
commit 92d1f76402

@ -872,7 +872,11 @@ void KRootWm::slotPopulateSessions()
void KRootWm::slotSessionActivated( int ent ) void KRootWm::slotSessionActivated( int ent )
{ {
if (ent > 0 && !sessionsMenu->isItemChecked( ent )) { if (ent > 0 && !sessionsMenu->isItemChecked( ent )) {
DM().lockSwitchVT( ent ); m_pSaver->lockScreen();
if (!m_pSaver->waitForLockEngage()) {
return;
}
DM().switchVT( ent );
} }
} }

Loading…
Cancel
Save