diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-19 18:35:24 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-19 18:35:24 +0200 |
| commit | 1ba600ca23706683ddd4035ce12cace43b911980 (patch) | |
| tree | 53e373d464408188caf3b1978319707e87a6fdd3 /src/managers/input/Swipe.cpp | |
| parent | 0026414f9bbefed9ba4838b600dd2566968bfc8a (diff) | |
added workspace swipe fingers
Diffstat (limited to 'src/managers/input/Swipe.cpp')
| -rw-r--r-- | src/managers/input/Swipe.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index d606dc98..74783f42 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -4,8 +4,9 @@ void CInputManager::onSwipeBegin(wlr_pointer_swipe_begin_event* e) { static auto *const PSWIPE = &g_pConfigManager->getConfigValuePtr("gestures:workspace_swipe")->intValue; + static auto *const PSWIPEFINGERS = &g_pConfigManager->getConfigValuePtr("gestures:workspace_swipe_fingers")->intValue; - if (e->fingers < 3 || *PSWIPE == 0) + if (e->fingers != *PSWIPEFINGERS|| *PSWIPE == 0) return; const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(g_pCompositor->m_pLastMonitor->activeWorkspace); |
