added support for locking to a screen when the sroll lock is

toggled on or when any key or button is pressed.  fully
implemented on X but stubbed out for now on win32.
This commit is contained in:
crs
2002-05-24 14:37:12 +00:00
parent a0b25b9d4a
commit 34c587e864
6 changed files with 58 additions and 2 deletions

View File

@@ -489,7 +489,17 @@ void CServer::onMouseWheel(SInt32 delta)
bool CServer::isLockedToScreen() const
{
// FIXME
// locked if primary says we're locked
if (m_primary->isLockedToScreen()) {
return true;
}
// locked if scroll-lock is toggled on
if ((m_primary->getToggleMask() & KeyModifierScrollLock) != 0) {
return true;
}
// not locked
return false;
}