mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 13:15:33 +08:00
Added a log message why the user is locked to the screen.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user