diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-12-16 15:58:19 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-12-16 15:58:19 +0000 |
| commit | a5234f26e4b7146ae7c2df25950f0177534cd643 (patch) | |
| tree | be319115cca2eb369791fad1822bdda0e0f358e9 /src/config/ConfigManager.hpp | |
| parent | de3ad245dcbcd42c88e9afc48264bdb8f2356c15 (diff) | |
core: drop using deques in favor of vectors
No point in most of these.
Diffstat (limited to 'src/config/ConfigManager.hpp')
| -rw-r--r-- | src/config/ConfigManager.hpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index 2de217cb..7802d1e4 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -8,7 +8,6 @@ #include "../defines.hpp" #include <variant> #include <vector> -#include <deque> #include <algorithm> #include <regex> #include <optional> @@ -175,7 +174,7 @@ class CConfigManager { PHLMONITOR getBoundMonitorForWS(const std::string&); std::string getBoundMonitorStringForWS(const std::string&); - const std::deque<SWorkspaceRule>& getAllWorkspaceRules(); + const std::vector<SWorkspaceRule>& getAllWorkspaceRules(); std::vector<SWindowRule> getMatchingRules(PHLWINDOW, bool dynamic = true, bool shadowExec = false); std::vector<SLayerRule> getMatchingRules(PHLLS); @@ -275,7 +274,7 @@ class CConfigManager { private: std::unique_ptr<Hyprlang::CConfig> m_pConfig; - std::deque<std::string> configPaths; // stores all the config paths + std::vector<std::string> configPaths; // stores all the config paths std::unordered_map<std::string, time_t> configModifyTimes; // stores modify times std::unordered_map<std::string, SAnimationPropertyConfig> animationConfig; // stores all the animations with their set values @@ -290,16 +289,16 @@ class CConfigManager { bool isFirstLaunch = true; // For exec-once - std::deque<SMonitorRule> m_dMonitorRules; - std::deque<SWorkspaceRule> m_dWorkspaceRules; - std::deque<SWindowRule> m_dWindowRules; - std::deque<SLayerRule> m_dLayerRules; - std::deque<std::string> m_dBlurLSNamespaces; + std::vector<SMonitorRule> m_vMonitorRules; + std::vector<SWorkspaceRule> m_vWorkspaceRules; + std::vector<SWindowRule> m_vWindowRules; + std::vector<SLayerRule> m_vLayerRules; + std::vector<std::string> m_dBlurLSNamespaces; bool firstExecDispatched = false; bool m_bManualCrashInitiated = false; - std::deque<std::string> firstExecRequests; - std::deque<std::string> finalExecRequests; + std::vector<std::string> firstExecRequests; + std::vector<std::string> finalExecRequests; std::vector<std::pair<std::string, std::string>> m_vFailedPluginConfigValues; // for plugin values of unloaded plugins std::string m_szConfigErrors = ""; |
