add remove, to blurls

This commit is contained in:
vaxerski 2022-07-15 13:29:56 +02:00
parent 5af26a451a
commit 6306d4dae3
1 changed files with 6 additions and 0 deletions

View File

@ -579,6 +579,12 @@ void CConfigManager::handleWindowRule(const std::string& command, const std::str
}
void CConfigManager::handleBlurLS(const std::string& command, const std::string& value) {
if (value.find("remove,") == 0) {
const auto TOREMOVE = value.substr(7);
m_dBlurLSNamespaces.erase(std::remove(m_dBlurLSNamespaces.begin(), m_dBlurLSNamespaces.end(), TOREMOVE));
return;
}
m_dBlurLSNamespaces.emplace_back(value);
}