mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:05:59 +01:00
only ensure DPMS in hyprctl monitors
This commit is contained in:
parent
5a96142cf8
commit
5dcbce550f
3 changed files with 3 additions and 3 deletions
|
@ -1314,7 +1314,7 @@ void CConfigManager::ensureDPMS() {
|
||||||
auto rule = getMonitorRuleFor(rm->szName);
|
auto rule = getMonitorRuleFor(rm->szName);
|
||||||
|
|
||||||
if (rule.disabled == rm->m_bEnabled) {
|
if (rule.disabled == rm->m_bEnabled) {
|
||||||
rm->m_pThisWrap = &rm;
|
rm->m_pThisWrap = &rm;
|
||||||
g_pHyprRenderer->applyMonitorRule(rm.get(), &rule);
|
g_pHyprRenderer->applyMonitorRule(rm.get(), &rule);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,7 @@ public:
|
||||||
void performMonitorReload();
|
void performMonitorReload();
|
||||||
bool m_bWantsMonitorReload = false;
|
bool m_bWantsMonitorReload = false;
|
||||||
bool m_bForceReload = false;
|
bool m_bForceReload = false;
|
||||||
|
void ensureDPMS();
|
||||||
|
|
||||||
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);
|
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);
|
||||||
|
|
||||||
|
@ -131,7 +132,6 @@ private:
|
||||||
void setDefaultVars();
|
void setDefaultVars();
|
||||||
void setDefaultAnimationVars();
|
void setDefaultAnimationVars();
|
||||||
void setDeviceDefaultVars(const std::string&);
|
void setDeviceDefaultVars(const std::string&);
|
||||||
void ensureDPMS();
|
|
||||||
|
|
||||||
void setAnimForChildren(SAnimationPropertyConfig *const);
|
void setAnimForChildren(SAnimationPropertyConfig *const);
|
||||||
|
|
||||||
|
|
|
@ -591,7 +591,7 @@ void HyprCtl::tickHyprCtl() {
|
||||||
requestReady = true;
|
requestReady = true;
|
||||||
|
|
||||||
if (g_pConfigManager->m_bWantsMonitorReload) {
|
if (g_pConfigManager->m_bWantsMonitorReload) {
|
||||||
g_pConfigManager->performMonitorReload(); // will unset
|
g_pConfigManager->ensureDPMS();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue