aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/config/ConfigManager.hpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-16 19:05:24 +0100
committerGitHub <[email protected]>2024-12-16 19:05:24 +0100
commitdab50b3ef3a1bad7f68320538223b6b41d1c6012 (patch)
tree3b911a592b2bece2017bdfdcc7557cbc6a3d22b0 /src/config/ConfigManager.hpp
parenteaac5c7cbdd40a2211c75a770df56bd2153b77cb (diff)
downloadHyprland-dab50b3ef3a1bad7f68320538223b6b41d1c6012.tar.gz
Hyprland-dab50b3ef3a1bad7f68320538223b6b41d1c6012.zip
core: Optimize window/layer rule application and scanning (#8735)
Optimizes window and layer rule parsing and later usage.
Diffstat (limited to 'src/config/ConfigManager.hpp')
-rw-r--r--src/config/ConfigManager.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp
index 7802d1e4..1eca5ac3 100644
--- a/src/config/ConfigManager.hpp
+++ b/src/config/ConfigManager.hpp
@@ -166,7 +166,7 @@ class CConfigManager {
Hyprlang::CConfigValue* getHyprlangConfigValuePtr(const std::string& name, const std::string& specialCat = "");
void onPluginLoadUnload(const std::string& name, bool load);
static std::string getMainConfigPath();
- const std::string getConfigString();
+ std::string getConfigString();
SMonitorRule getMonitorRuleFor(const PHLMONITOR);
SWorkspaceRule getWorkspaceRuleFor(PHLWORKSPACE workspace);
@@ -176,8 +176,8 @@ class CConfigManager {
std::string getBoundMonitorStringForWS(const std::string&);
const std::vector<SWorkspaceRule>& getAllWorkspaceRules();
- std::vector<SWindowRule> getMatchingRules(PHLWINDOW, bool dynamic = true, bool shadowExec = false);
- std::vector<SLayerRule> getMatchingRules(PHLLS);
+ std::vector<SP<CWindowRule>> getMatchingRules(PHLWINDOW, bool dynamic = true, bool shadowExec = false);
+ std::vector<SP<CLayerRule>> getMatchingRules(PHLLS);
const std::vector<SConfigOptionDescription>& getAllDescriptions();
@@ -291,8 +291,8 @@ class CConfigManager {
std::vector<SMonitorRule> m_vMonitorRules;
std::vector<SWorkspaceRule> m_vWorkspaceRules;
- std::vector<SWindowRule> m_vWindowRules;
- std::vector<SLayerRule> m_vLayerRules;
+ std::vector<SP<CWindowRule>> m_vWindowRules;
+ std::vector<SP<CLayerRule>> m_vLayerRules;
std::vector<std::string> m_dBlurLSNamespaces;
bool firstExecDispatched = false;