diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-05-05 15:33:31 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-05-05 15:33:31 +0100 |
| commit | a5d63a0324649fd056da1d1e09b435333defb4f3 (patch) | |
| tree | bb8dfbe5efc1624e4d092a77a37aae33e03fd3fb /src/config/ConfigManager.hpp | |
| parent | 8435d6fc124b25aa07b8129d1baf4c6483c54ea7 (diff) | |
configmanager: store workspace rules as a deque
Diffstat (limited to 'src/config/ConfigManager.hpp')
| -rw-r--r-- | src/config/ConfigManager.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index b18cbf1a..0d786104 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -51,6 +51,7 @@ struct SWorkspaceRule { std::string workspaceString = ""; std::string workspaceName = ""; int workspaceId = -1; + bool isDefault = false; std::optional<int64_t> gapsIn; std::optional<int64_t> gapsOut; std::optional<int64_t> borderSize; @@ -226,7 +227,7 @@ class CConfigManager { bool isFirstLaunch = true; // For exec-once std::deque<SMonitorRule> m_dMonitorRules; - std::unordered_map<int, SWorkspaceRule> m_mWorkspaceRules; + std::deque<SWorkspaceRule> m_dWorkspaceRules; std::deque<SWindowRule> m_dWindowRules; std::deque<SLayerRule> m_dLayerRules; std::deque<std::string> m_dBlurLSNamespaces; |
