summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-12 20:02:57 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-12 20:02:57 +0200
commit17f63bf3e8abf339279a0c0d6df3b618c172476b (patch)
treef6f26875910bf3a10aaf1abfc68eb8ddac2accc7 /src/config/ConfigManager.hpp
parent4bd23604f88708718df0f5e5971b2d1169e13e9b (diff)
Fix exec-once being wack on launch
Diffstat (limited to 'src/config/ConfigManager.hpp')
-rw-r--r--src/config/ConfigManager.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp
index 663480d4..45946b93 100644
--- a/src/config/ConfigManager.hpp
+++ b/src/config/ConfigManager.hpp
@@ -51,6 +51,9 @@ public:
std::vector<SWindowRule> getMatchingRules(CWindow*);
+ // no-op when done.
+ void dispatchExecOnce();
+
private:
std::unordered_map<std::string, SConfigValue> configValues;
time_t lastModifyTime = 0; // for reloading the config if changed
@@ -64,6 +67,9 @@ private:
std::deque<SMonitorRule> m_dMonitorRules;
std::deque<SWindowRule> m_dWindowRules;
+ bool firstExecDispatched = false;
+ std::deque<std::string> firstExecRequests;
+
// internal methods
void loadConfigLoadVars();
SConfigValue getConfigValueSafe(std::string);