aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-11 12:19:21 +0100
committervaxerski <[email protected]>2023-09-11 12:19:21 +0100
commit5a6d0e9963eaca457a1f91c5ab4c3142c145b646 (patch)
tree1d31728002359dc17587b9a5f6cd7fce85c2435f
parent99fac5993892e2ef82d40f333ac73ac6a8fdd899 (diff)
downloadHyprland-5a6d0e9963eaca457a1f91c5ab4c3142c145b646.tar.gz
Hyprland-5a6d0e9963eaca457a1f91c5ab4c3142c145b646.zip
refactor: fix missed middle() call in CKeybindManager
-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 72fa559e..007162f9 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;
}