refactor: fix missed middle() call in CKeybindManager

This commit is contained in:
Vaxry 2023-09-11 12:19:21 +01:00
parent 99fac59938
commit 5a6d0e9963

View file

@ -1158,7 +1158,7 @@ void CKeybindManager::moveActiveTo(std::string args) {
const auto PWINDOWTOCHANGETO = g_pCompositor->getWindowInDirection(PLASTWINDOW, arg); const auto PWINDOWTOCHANGETO = g_pCompositor->getWindowInDirection(PLASTWINDOW, arg);
if (PWINDOWTOCHANGETO) { if (PWINDOWTOCHANGETO) {
g_pLayoutManager->getCurrentLayout()->moveWindowTo(PLASTWINDOW, args); 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; return;
} }