mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
keybinds: fix spammy warning
This commit is contained in:
parent
9cf563065a
commit
b7d71bc0e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user