summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-08-09 20:36:21 +0200
committervaxerski <vaxry@vaxry.net>2022-08-09 20:36:21 +0200
commit8e5985d70e3370bc2c6155b58488499d5f6f067d (patch)
tree8bba4fb7e80693b0dc71a3c6dcf796910497dee1 /src/managers/KeybindManager.cpp
parent9255a4d2ffee15cf6cd54d92a52837fc9f253d5c (diff)
clean up unconstraining logic
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 5e8a0a8a..c5899bf9 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -467,7 +467,7 @@ void CKeybindManager::changeworkspace(std::string args) {
}
// remove constraints
- g_pCompositor->m_sSeat.mouse->constraintActive = false;
+ g_pInputManager->unconstrainMouse();
// if it exists, we warp to it
if (g_pCompositor->getWorkspaceByID(workspaceToChangeTo)) {
@@ -745,7 +745,7 @@ void CKeybindManager::moveFocusTo(std::string args) {
return;
// remove constraints
- g_pCompositor->m_sSeat.mouse->constraintActive = false;
+ g_pInputManager->unconstrainMouse();
auto switchToWindow = [&](CWindow* PWINDOWTOCHANGETO) {