summaryrefslogtreecommitdiff
path: root/src/managers/input/Swipe.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-07 11:51:47 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-07 11:51:52 +0100
commit569eaff04c1da70dd06f8a6d80ea9780667825c0 (patch)
tree65b12e11ae4d1aafc990d5c042823cc6a47836c6 /src/managers/input/Swipe.cpp
parent801a17194c426abe406c2ced47874855e64031e1 (diff)
swipe: block on locked session
Diffstat (limited to 'src/managers/input/Swipe.cpp')
-rw-r--r--src/managers/input/Swipe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp
index 596ec8f0..847db2f6 100644
--- a/src/managers/input/Swipe.cpp
+++ b/src/managers/input/Swipe.cpp
@@ -6,7 +6,7 @@ void CInputManager::onSwipeBegin(wlr_pointer_swipe_begin_event* e) {
static auto* const PSWIPEFINGERS = &g_pConfigManager->getConfigValuePtr("gestures:workspace_swipe_fingers")->intValue;
static auto* const PSWIPENEW = &g_pConfigManager->getConfigValuePtr("gestures:workspace_swipe_create_new")->intValue;
- if (e->fingers != *PSWIPEFINGERS || *PSWIPE == 0)
+ if (e->fingers != *PSWIPEFINGERS || *PSWIPE == 0 || g_pSessionLockManager->isSessionLocked())
return;
int onMonitor = 0;