added dimaround

This commit is contained in:
vaxerski
2022-12-28 15:39:17 +01:00
parent b5f5c26be3
commit a6699ef30c
6 changed files with 32 additions and 7 deletions

View File

@@ -351,6 +351,8 @@ void CWindow::applyDynamicRule(const SWindowRule& r) {
m_sSpecialRenderData.activeBorderColor = configStringToInt(colorPart);
}
} catch (std::exception& e) { Debug::log(ERR, "BorderColor rule \"%s\" failed with: %s", r.szRule.c_str(), e.what()); }
} else if (r.szRule == "dimaround") {
m_sAdditionalConfigData.dimAround = true;
}
}
@@ -367,6 +369,7 @@ void CWindow::updateDynamicRules() {
m_sAdditionalConfigData.forceNoAnims = false;
m_sAdditionalConfigData.animationStyle = "";
m_sAdditionalConfigData.rounding = -1;
m_sAdditionalConfigData.dimAround = false;
const auto WINDOWRULES = g_pConfigManager->getMatchingRules(this);
for (auto& r : WINDOWRULES) {