diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-30 02:41:27 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-30 02:41:27 +0100 |
| commit | 5edc32930d85f5f481160b938965c8bc329487e7 (patch) | |
| tree | 3609cb2bebd1f72e17605022e2b9a2dd526377f6 /src/config/ConfigManager.hpp | |
| parent | 5e6f7b1cdb72b394ad8556bb232ac8a406d851b4 (diff) | |
layerSurface: refactor/move to a memory-safe impl
Makes all the pointers smart to avoid memory issues
Refactors layerSurface code to live inside desktop/layersurface
Diffstat (limited to 'src/config/ConfigManager.hpp')
| -rw-r--r-- | src/config/ConfigManager.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index aa34cf3b..2e723656 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -17,6 +17,7 @@ #include "../helpers/Monitor.hpp" #include "../helpers/VarList.hpp" #include "../desktop/Window.hpp" +#include "../desktop/LayerSurface.hpp" #include "defaultConfig.hpp" #include "ConfigDataValues.hpp" @@ -28,8 +29,6 @@ #define HANDLE void* -class CWindow; - struct SWorkspaceRule { std::string monitor = ""; std::string workspaceString = ""; @@ -114,7 +113,7 @@ class CConfigManager { const std::deque<SWorkspaceRule>& getAllWorkspaceRules(); std::vector<SWindowRule> getMatchingRules(PHLWINDOW, bool dynamic = true, bool shadowExec = false); - std::vector<SLayerRule> getMatchingRules(SLayerSurface*); + std::vector<SLayerRule> getMatchingRules(PHLLS); std::unordered_map<std::string, SMonitorAdditionalReservedArea> m_mAdditionalReservedAreas; |
