Added hyprctl reload

This commit is contained in:
vaxerski 2022-05-08 15:28:45 +02:00
parent aa5b0d2cda
commit 39dcfa61c3
4 changed files with 14 additions and 2 deletions

View file

@ -555,9 +555,10 @@ void CConfigManager::tick() {
}
// check if we need to reload cfg
if (fileStat.st_mtime != lastModifyTime) {
if (fileStat.st_mtime != lastModifyTime || m_bForceReload) {
lastModifyTime = fileStat.st_mtime;
m_bForceReload = false;
loadConfigLoadVars();
}
}

View file

@ -71,6 +71,7 @@ public:
void performMonitorReload();
bool m_bWantsMonitorReload = false;
bool m_bForceReload = false;
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);