diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-30 12:09:05 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-30 12:09:05 +0200 |
| commit | b0cd90a43c7281dc339b3dab6236646b1ed6439f (patch) | |
| tree | 315b9cf1335a3367444aad6b007e9013383ec9f7 /src/managers/KeybindManager.cpp | |
| parent | ae3ff6736e6e9a8e7d06f3706c0c4786b37ec3bb (diff) | |
refactor a bunch of layout code
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 14c535d8..64c0d886 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -221,6 +221,9 @@ void CKeybindManager::toggleActiveFloating(std::string args) { const auto ACTIVEWINDOW = g_pCompositor->m_pLastWindow; if (g_pCompositor->windowValidMapped(ACTIVEWINDOW)) { + // remove drag status + g_pInputManager->currentlyDraggedWindow = nullptr; + ACTIVEWINDOW->m_bIsFloating = !ACTIVEWINDOW->m_bIsFloating; if (ACTIVEWINDOW->m_iWorkspaceID == SPECIAL_WORKSPACE_ID) { |
