Fix exec-once being wack on launch

This commit is contained in:
vaxerski
2022-04-12 20:02:57 +02:00
parent 4bd23604f8
commit 17f63bf3e8
3 changed files with 22 additions and 1 deletions

View File

@@ -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);