summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-04 16:08:49 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-04 16:08:55 +0100
commit719a5b4f0b2039a8cc7cbf3610ade82aaf26f190 (patch)
treeb8586e60725df1571ee92920d18a7fc54916cdb5 /src/managers/KeybindManager.cpp
parent7bdfdaa28a4d107b1a9c9260837f81001000e697 (diff)
use vectorToWindowIdeal in mouse binds
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 289773db..820775a6 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1640,7 +1640,7 @@ void CKeybindManager::mouse(std::string args) {
if (PRESSED) {
g_pKeybindManager->m_bIsMouseBindActive = true;
- g_pInputManager->currentlyDraggedWindow = g_pCompositor->windowFromCursor();
+ g_pInputManager->currentlyDraggedWindow = g_pCompositor->vectorToWindowIdeal(g_pInputManager->getMouseCoordsInternal());
g_pInputManager->dragMode = MBIND_MOVE;
g_pLayoutManager->getCurrentLayout()->onBeginDragWindow();
@@ -1657,7 +1657,7 @@ void CKeybindManager::mouse(std::string args) {
if (PRESSED) {
g_pKeybindManager->m_bIsMouseBindActive = true;
- g_pInputManager->currentlyDraggedWindow = g_pCompositor->windowFromCursor();
+ g_pInputManager->currentlyDraggedWindow = g_pCompositor->vectorToWindowIdeal(g_pInputManager->getMouseCoordsInternal());
g_pInputManager->dragMode = MBIND_RESIZE;
g_pLayoutManager->getCurrentLayout()->onBeginDragWindow();