aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events
diff options
context:
space:
mode:
authorMightyPlaza <[email protected]>2024-07-27 16:46:19 +0000
committerGitHub <[email protected]>2024-07-27 17:46:19 +0100
commitad711ef421fea4cfe03661ebebd465d070925437 (patch)
treecd73755f6dde3c48b4d17762f22c82104d6395df /src/events
parentae638d997d45e6183adafc6942b1b8fcc70f8928 (diff)
downloadHyprland-ad711ef421fea4cfe03661ebebd465d070925437.tar.gz
Hyprland-ad711ef421fea4cfe03661ebebd465d070925437.zip
input: unify removing currentlyDraggedWindow (#7071)
modified: src/desktop/Window.cpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/InputManager.cpp
Diffstat (limited to 'src/events')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 0e1037b6..b2abb65c 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -627,6 +627,9 @@ void Events::listener_unmapWindow(void* owner, void* data) {
g_pInputManager->releaseAllMouseButtons();
}
+ if (PWINDOW == g_pInputManager->currentlyDraggedWindow.lock())
+ g_pKeybindManager->changeMouseBindMode(MBIND_INVALID);
+
// remove the fullscreen window status from workspace if we closed it
const auto PWORKSPACE = PWINDOW->m_pWorkspace;