diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-04 19:58:51 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-04 19:58:51 +0200 |
| commit | cc8b8f595fa5c20b394394fe777451d4873608b3 (patch) | |
| tree | bb3fddd7c431caa79f0003f707ee601fac91da44 /src/managers/KeybindManager.cpp | |
| parent | 9742ac7596b83025c7ab0cf4e92d9db347b4b5c3 (diff) | |
disallow workspace special windowrule
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 061f60a9..4ecf792e 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -891,12 +891,7 @@ void CKeybindManager::toggleSpecialWorkspace(std::string args) { } } else { auto PSPECIALWORKSPACE = g_pCompositor->getWorkspaceByID(SPECIAL_WORKSPACE_ID); - - if (!PSPECIALWORKSPACE) { - // ??? happens sometimes...? - PSPECIALWORKSPACE = g_pCompositor->m_vWorkspaces.emplace_back(std::make_unique<CWorkspace>(g_pCompositor->m_pLastMonitor->ID, "special", true)).get(); - } - + g_pCompositor->m_pLastMonitor->specialWorkspaceOpen = true; g_pLayoutManager->getCurrentLayout()->recalculateMonitor(g_pCompositor->m_pLastMonitor->ID); |
