mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 06:05:08 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user