mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:45:58 +01:00
pluginapi: add configReloaded event
This commit is contained in:
parent
382af06406
commit
da7ea2b33d
1 changed files with 3 additions and 2 deletions
|
@ -1612,6 +1612,8 @@ void CConfigManager::loadConfigLoadVars() {
|
||||||
|
|
||||||
// update plugins
|
// update plugins
|
||||||
handlePluginLoads();
|
handlePluginLoads();
|
||||||
|
|
||||||
|
EMIT_HOOK_EVENT("configReloaded", nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfigManager::tick() {
|
void CConfigManager::tick() {
|
||||||
|
@ -2185,8 +2187,7 @@ void CConfigManager::removePluginConfig(HANDLE handle) {
|
||||||
|
|
||||||
std::string CConfigManager::getDefaultWorkspaceFor(const std::string& name) {
|
std::string CConfigManager::getDefaultWorkspaceFor(const std::string& name) {
|
||||||
for (auto other = m_dWorkspaceRules.begin(); other != m_dWorkspaceRules.end(); ++other) {
|
for (auto other = m_dWorkspaceRules.begin(); other != m_dWorkspaceRules.end(); ++other) {
|
||||||
if (other->isDefault &&
|
if (other->isDefault && (other->monitor == name || (other->monitor.substr(0, 5) == "desc:" && g_pCompositor->getMonitorFromDesc(other->monitor.substr(5))->szName == name)))
|
||||||
(other->monitor == name || (other->monitor.substr(0, 5) == "desc:" && g_pCompositor->getMonitorFromDesc(other->monitor.substr(5))->szName == name)))
|
|
||||||
return other->workspaceString;
|
return other->workspaceString;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue