summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-15 13:29:56 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-15 13:29:56 +0200
commit6306d4dae3fa221a6099e109c7faef60bac4fac5 (patch)
tree61bd5611a93b09a9d212a57a52a57a3a6ca60fdf /src
parent5af26a451a98288178843e5b249694c6ffc41520 (diff)
add remove, to blurls
Diffstat (limited to 'src')
-rw-r--r--src/config/ConfigManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index ba73b777..e3db1856 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -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);
}