aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-20 01:42:21 +0000
committervaxerski <[email protected]>2023-03-20 01:42:21 +0000
commit7a514f41a34f01246eff9a21fc96fe5e89775f11 (patch)
tree8ba5f14a35acb101b4f30e960545a4bcc611f6c8
parent928de3344767b1c8aeade24d57b188aeef57a273 (diff)
downloadHyprland-7a514f41a34f01246eff9a21fc96fe5e89775f11.tar.gz
Hyprland-7a514f41a34f01246eff9a21fc96fe5e89775f11.zip
Focus: warp cursor on movewindow
-rw-r--r--src/managers/KeybindManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 0693a59f..4914d1fb 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1274,6 +1274,8 @@ void CKeybindManager::moveActiveTo(std::string args) {
return;
g_pLayoutManager->getCurrentLayout()->switchWindows(PLASTWINDOW, PWINDOWTOCHANGETO);
+
+ g_pCompositor->warpCursorTo(PLASTWINDOW->m_vRealPosition.vec() + PLASTWINDOW->m_vRealSize.vec() / 2.0);
}
void CKeybindManager::toggleGroup(std::string args) {