diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-10 13:54:06 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-10 13:54:06 +0200 |
| commit | da7ea2b33d232ff54645b6de58663934e38eff67 (patch) | |
| tree | d2f0fd2f4a6c813113c9cc3fc76cc87cb0cc7270 /src/config/ConfigManager.cpp | |
| parent | 382af06406e39640dac36e4e075c2c70063cb16c (diff) | |
pluginapi: add configReloaded event
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 85b30d58..1bea33b5 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1612,6 +1612,8 @@ void CConfigManager::loadConfigLoadVars() { // update plugins handlePluginLoads(); + + EMIT_HOOK_EVENT("configReloaded", nullptr); } void CConfigManager::tick() { @@ -2185,8 +2187,7 @@ void CConfigManager::removePluginConfig(HANDLE handle) { std::string CConfigManager::getDefaultWorkspaceFor(const std::string& name) { for (auto other = m_dWorkspaceRules.begin(); other != m_dWorkspaceRules.end(); ++other) { - if (other->isDefault && - (other->monitor == name || (other->monitor.substr(0, 5) == "desc:" && g_pCompositor->getMonitorFromDesc(other->monitor.substr(5))->szName == name))) + if (other->isDefault && (other->monitor == name || (other->monitor.substr(0, 5) == "desc:" && g_pCompositor->getMonitorFromDesc(other->monitor.substr(5))->szName == name))) return other->workspaceString; } return ""; |
