summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorJeremy Huang <66577496+jchhuang-tech@users.noreply.github.com>2023-05-27 03:16:50 -0700
committerGitHub <noreply@github.com>2023-05-27 12:16:50 +0200
commit8afc2f45c73d089e6c27ee732be4a3dd827acf2b (patch)
tree4de28fc423c9334ccee075c9204e6d0f8b5f7cb6 /src/managers/KeybindManager.cpp
parent5f4659afef5856c509d53957e62b7f6c38d39f41 (diff)
focus: make cursor follow movewindow (#2374)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index e3e56ef7..d45100c3 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1138,7 +1138,7 @@ void CKeybindManager::moveActiveTo(std::string args) {
const auto PWINDOWTOCHANGETO = g_pCompositor->getWindowInDirection(PLASTWINDOW, arg);
if (PWINDOWTOCHANGETO && PWINDOWTOCHANGETO->m_iWorkspaceID == PLASTWINDOW->m_iWorkspaceID) {
g_pLayoutManager->getCurrentLayout()->switchWindows(PLASTWINDOW, PWINDOWTOCHANGETO);
- g_pCompositor->warpCursorTo(PLASTWINDOW->m_vRealPosition.vec() + PLASTWINDOW->m_vRealSize.vec() / 2.0);
+ g_pCompositor->warpCursorTo(PWINDOWTOCHANGETO->m_vRealPosition.vec() + PWINDOWTOCHANGETO->m_vRealSize.vec() / 2.0);
return;
}