mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 04:31:57 -07:00
keybinds: fix spammy warning
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -181,6 +181,4 @@ class CKeybindManager {
|
||||
friend class CConfigManager;
|
||||
};
|
||||
|
||||
static void toggleActiveFloatingCore(std::string args, std::optional<bool> floatState);
|
||||
|
||||
inline std::unique_ptr<CKeybindManager> g_pKeybindManager;
|
||||
|
Reference in New Issue
Block a user