summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-09 21:47:21 +0100
committerVaxry <vaxry@vaxry.net>2024-05-09 22:02:18 +0100
commit635a02d83fe9d598cf5f6aba47e672647608fb76 (patch)
tree71f5e2ad0991af3086602c5b30b1411ee4c04562 /src/config/ConfigManager.cpp
parent85f7f69046c07c61f59b0ef7cccd01e88b316413 (diff)
layer-shell: move to new impl
Also bumps the hw-s dep
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 135a6a94..7804a511 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -4,6 +4,7 @@
#include "../render/decorations/CHyprGroupBarDecoration.hpp"
#include "config/ConfigDataValues.hpp"
#include "helpers/VarList.hpp"
+#include "../protocols/LayerShell.hpp"
#include <string.h>
#include <string>
@@ -1204,7 +1205,7 @@ std::vector<SLayerRule> CConfigManager::getMatchingRules(PHLLS pLS) {
} else {
std::regex NSCHECK(lr.targetNamespace);
- if (!pLS->layerSurface->_namespace || !std::regex_search(pLS->layerSurface->_namespace, NSCHECK))
+ if (!std::regex_search(pLS->layerSurface->layerNamespace, NSCHECK))
continue;
}
@@ -1212,8 +1213,8 @@ std::vector<SLayerRule> CConfigManager::getMatchingRules(PHLLS pLS) {
returns.push_back(lr);
}
- if (pLS->layerSurface->_namespace && shouldBlurLS(pLS->layerSurface->_namespace))
- returns.push_back({pLS->layerSurface->_namespace, "blur"});
+ if (shouldBlurLS(pLS->layerSurface->layerNamespace))
+ returns.push_back({pLS->layerSurface->layerNamespace, "blur"});
return returns;
}