summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2023-11-18 17:00:24 +0000
committerGitHub <noreply@github.com>2023-11-18 17:00:24 +0000
commit8b57a1973ea8b242783069e9a3e3d31e3cd939a8 (patch)
tree56c6d9dde2722fe4bd7c1cc6253267dc17b592dc /src/managers/KeybindManager.cpp
parent483302a2cdc3cc8f4854aecb9cb0ed841babe30c (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.cpp8
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();