From 5edc32930d85f5f481160b938965c8bc329487e7 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 30 Apr 2024 02:41:27 +0100 Subject: 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 --- src/config/ConfigManager.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/config/ConfigManager.hpp') 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& getAllWorkspaceRules(); std::vector getMatchingRules(PHLWINDOW, bool dynamic = true, bool shadowExec = false); - std::vector getMatchingRules(SLayerSurface*); + std::vector getMatchingRules(PHLLS); std::unordered_map m_mAdditionalReservedAreas; -- cgit v1.2.3