diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-03-06 22:08:23 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-03-06 22:08:23 +0000 |
| commit | cb4230e1c2b2965b320ae44f440741516af14b50 (patch) | |
| tree | 8a3f0aa1e9c900d58a668ac1412cfb08d7e2d481 /src/managers/input/Touch.cpp | |
| parent | 7055d0c138965679bb88ed4db60e2698db66bbf9 (diff) | |
touch: reject swipe on locked sessions
fixes #9542
Diffstat (limited to 'src/managers/input/Touch.cpp')
| -rw-r--r-- | src/managers/input/Touch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/Touch.cpp b/src/managers/input/Touch.cpp index 3d35764e..a166a256 100644 --- a/src/managers/input/Touch.cpp +++ b/src/managers/input/Touch.cpp @@ -41,7 +41,7 @@ void CInputManager::onTouchDown(ITouch::SDownEvent e) { if (m_sActiveSwipe.pWorkspaceBegin) { return; // TODO: Don't swipe if you touched a floating window. - } else if (*PSWIPETOUCH && (m_pFoundLSToFocus.expired() || m_pFoundLSToFocus->layer <= 1)) { + } else if (*PSWIPETOUCH && (m_pFoundLSToFocus.expired() || m_pFoundLSToFocus->layer <= 1) && !g_pSessionLockManager->isSessionLocked()) { const auto PWORKSPACE = PMONITOR->activeWorkspace; const auto STYLE = PWORKSPACE->m_vRenderOffset->getStyle(); const bool VERTANIMS = STYLE == "slidevert" || STYLE.starts_with("slidefadevert"); |
