Added a log message why the user is locked to the screen.

This commit is contained in:
crs
2003-03-17 22:32:01 +00:00
parent 0fd70ee536
commit a7e2141ede
4 changed files with 296 additions and 27 deletions

View File

@@ -897,13 +897,14 @@ CServer::onCommandKey(KeyID /*id*/, KeyModifierMask /*mask*/, bool /*down*/)
bool
CServer::isLockedToScreenNoLock() const
{
// locked if primary says we're locked
if (m_primaryClient->isLockedToScreen()) {
// locked if scroll-lock is toggled on
if ((m_primaryClient->getToggleMask() & KeyModifierScrollLock) != 0) {
LOG((CLOG_DEBUG "locked by ScrollLock"));
return true;
}
// locked if scroll-lock is toggled on
if ((m_primaryClient->getToggleMask() & KeyModifierScrollLock) != 0) {
// locked if primary says we're locked
if (m_primaryClient->isLockedToScreen()) {
return true;
}