diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-15 13:29:56 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-15 13:29:56 +0200 |
| commit | 6306d4dae3fa221a6099e109c7faef60bac4fac5 (patch) | |
| tree | 61bd5611a93b09a9d212a57a52a57a3a6ca60fdf /src | |
| parent | 5af26a451a98288178843e5b249694c6ffc41520 (diff) | |
add remove, to blurls
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/ConfigManager.cpp | 6 |
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); } |
