From d6e850d3f525acfe79bcb8af83b8af4cfefdd065 Mon Sep 17 00:00:00 2001 From: dtop Date: Tue, 11 Jul 2023 13:48:57 +0200 Subject: [PATCH] switch to using window->middle() --- 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 d2cc508b..2c2dc1bf 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -775,7 +775,7 @@ void CKeybindManager::changeworkspace(std::string args) { g_pCompositor->focusWindow(PNEWWINDOW); if (PNEWWINDOW) - g_pCompositor->warpCursorTo(PNEWWINDOW->m_vRealPosition.goalv() + PNEWWINDOW->m_vRealSize.goalv() / 2.f); + g_pCompositor->warpCursorTo(PNEWWINDOW->middle()); else g_pCompositor->warpCursorTo(PMONITORWORKSPACEOWNER->vecPosition + PMONITORWORKSPACEOWNER->vecSize / 2.f);