diff options
author | vaxerski <[email protected]> | 2023-03-20 01:42:21 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-20 01:42:21 +0000 |
commit | 7a514f41a34f01246eff9a21fc96fe5e89775f11 (patch) | |
tree | 8ba5f14a35acb101b4f30e960545a4bcc611f6c8 | |
parent | 928de3344767b1c8aeade24d57b188aeef57a273 (diff) | |
download | Hyprland-7a514f41a34f01246eff9a21fc96fe5e89775f11.tar.gz Hyprland-7a514f41a34f01246eff9a21fc96fe5e89775f11.zip |
Focus: warp cursor on movewindow
-rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
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) { |