diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index df27a8cf..cca72ca8 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -831,19 +831,7 @@ void CKeybindManager::clearKeybinds() { m_lKeybinds.clear(); } -void CKeybindManager::toggleActiveFloating(std::string args) { - return toggleActiveFloatingCore(args, std::nullopt); -} - -void CKeybindManager::setActiveFloating(std::string args) { - return toggleActiveFloatingCore(args, true); -} - -void CKeybindManager::setActiveTiled(std::string args) { - return toggleActiveFloatingCore(args, false); -} - -void toggleActiveFloatingCore(std::string args, std::optional floatState) { +static void toggleActiveFloatingCore(std::string args, std::optional floatState) { CWindow* PWINDOW = nullptr; if (args != "active" && args.length() > 1) @@ -884,6 +872,18 @@ void toggleActiveFloatingCore(std::string args, std::optional floatState) } } +void CKeybindManager::toggleActiveFloating(std::string args) { + return toggleActiveFloatingCore(args, std::nullopt); +} + +void CKeybindManager::setActiveFloating(std::string args) { + return toggleActiveFloatingCore(args, true); +} + +void CKeybindManager::setActiveTiled(std::string args) { + return toggleActiveFloatingCore(args, false); +} + void CKeybindManager::centerWindow(std::string args) { const auto PWINDOW = g_pCompositor->m_pLastWindow; diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index 5244918d..7b87faa8 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -181,6 +181,4 @@ class CKeybindManager { friend class CConfigManager; }; -static void toggleActiveFloatingCore(std::string args, std::optional floatState); - inline std::unique_ptr g_pKeybindManager;