From 5a6d0e9963eaca457a1f91c5ab4c3142c145b646 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 11 Sep 2023 12:19:21 +0100 Subject: [PATCH] refactor: fix missed middle() call in CKeybindManager --- src/managers/KeybindManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 72fa559e8..007162f9b 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1158,7 +1158,7 @@ void CKeybindManager::moveActiveTo(std::string args) { const auto PWINDOWTOCHANGETO = g_pCompositor->getWindowInDirection(PLASTWINDOW, arg); if (PWINDOWTOCHANGETO) { g_pLayoutManager->getCurrentLayout()->moveWindowTo(PLASTWINDOW, args); - g_pCompositor->warpCursorTo(PLASTWINDOW->m_vRealPosition.goalv() + PLASTWINDOW->m_vRealSize.goalv() / 2.0); + g_pCompositor->warpCursorTo(PLASTWINDOW->middle()); return; }