diff options
author | Vaxry <[email protected]> | 2024-12-16 18:44:19 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-16 18:44:19 +0000 |
commit | 95cdedee04d2bb9b541a0c4a0c23549928f06596 (patch) | |
tree | b972d9e9920946764ca65358d0a40837e5a53c87 | |
parent | 0706c1a1f74ef70bfaa3cd46d223f703e553e64e (diff) | |
download | Hyprland-95cdedee04d2bb9b541a0c4a0c23549928f06596.tar.gz Hyprland-95cdedee04d2bb9b541a0c4a0c23549928f06596.zip |
windowrules: fix prop rules with boolean values
-rw-r--r-- | src/desktop/Window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 2858e931..cfced8a3 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -783,7 +783,7 @@ void CWindow::applyDynamicRule(const SP<CWindowRule>& r) { } catch (std::exception& e) { Debug::log(ERR, "Rule \"{}\" failed with: {}", r->szRule, e.what()); } } else if (auto search = g_pConfigManager->mbWindowProperties.find(VARS[1]); search != g_pConfigManager->mbWindowProperties.end()) { try { - *(search->second(m_pSelf.lock())) = CWindowOverridableVar((bool)std::stoi(VARS[2]), priority); + *(search->second(m_pSelf.lock())) = CWindowOverridableVar(VARS[2].empty() ? true : (bool)std::stoi(VARS[2]), priority); } catch (std::exception& e) { Debug::log(ERR, "Rule \"{}\" failed with: {}", r->szRule, e.what()); } } break; |