summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-04 01:16:47 +0100
committerVaxry <vaxry@vaxry.net>2024-04-04 01:16:47 +0100
commitb7d71bc0e1084bc1a296ae906503709a74fde4d9 (patch)
treeb85d988d99d7e1b301e99264e319ad041efe0282 /src/managers/KeybindManager.cpp
parent9cf563065ad5069baea1472b665b56bdcbde3776 (diff)
keybinds: fix spammy warning
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp26
1 files changed, 13 insertions, 13 deletions
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<bool> floatState) {
+static void toggleActiveFloatingCore(std::string args, std::optional<bool> floatState) {
CWindow* PWINDOW = nullptr;
if (args != "active" && args.length() > 1)
@@ -884,6 +872,18 @@ void toggleActiveFloatingCore(std::string args, std::optional<bool> 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;