diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-11-18 17:00:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-18 17:00:24 +0000 |
| commit | 8b57a1973ea8b242783069e9a3e3d31e3cd939a8 (patch) | |
| tree | 56c6d9dde2722fe4bd7c1cc6253267dc17b592dc /src/managers/KeybindManager.cpp | |
| parent | 483302a2cdc3cc8f4854aecb9cb0ed841babe30c (diff) | |
internal: Allow floating windows on special (#3872)
* allow floating on special
* fix mistake
* fix clipbox
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index aa35e3fd..c3a5efe1 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -735,11 +735,10 @@ void CKeybindManager::clearKeybinds() { void CKeybindManager::toggleActiveFloating(std::string args) { CWindow* PWINDOW = nullptr; - if (args != "" && args != "active" && args.length() > 1) { + if (args != "" && args != "active" && args.length() > 1) PWINDOW = g_pCompositor->getWindowByRegex(args); - } else { + else PWINDOW = g_pCompositor->m_pLastWindow; - } if (!PWINDOW) return; @@ -747,9 +746,6 @@ void CKeybindManager::toggleActiveFloating(std::string args) { // remove drag status g_pInputManager->currentlyDraggedWindow = nullptr; - if (g_pCompositor->isWorkspaceSpecial(PWINDOW->m_iWorkspaceID)) - return; - if (PWINDOW->m_sGroupData.pNextWindow && PWINDOW->m_sGroupData.pNextWindow != PWINDOW) { const auto PCURRENT = PWINDOW->getGroupCurrent(); |
