Improved handling of screen saver handling when windows 2k is

the client and the screen saver is password protected.  It used
to immediately turn off the screen saver (unintentionally) in
that case.
This commit is contained in:
crs
2002-12-25 18:44:54 +00:00
parent 41dc621579
commit fd5625ba99
2 changed files with 15 additions and 4 deletions

View File

@@ -473,9 +473,16 @@ CMSWindowsScreen::onPreDispatch(const CEvent* event)
if (isCurrentDesktop(desk)) {
CloseDesktop(desk);
}
else {
else if (!m_screensaver->isActive()) {
// don't switch desktops when the screensaver is
// active. we'd most likely switch to the
// screensaver desktop which would have the side
// effect of forcing the screensaver to stop.
switchDesktop(desk);
}
else {
CloseDesktop(desk);
}
}
}
return true;