only ensure DPMS in hyprctl monitors

This commit is contained in:
vaxerski 2022-08-03 21:19:12 +02:00
parent 5a96142cf8
commit 5dcbce550f
3 changed files with 3 additions and 3 deletions

View file

@ -96,6 +96,7 @@ public:
void performMonitorReload();
bool m_bWantsMonitorReload = false;
bool m_bForceReload = false;
void ensureDPMS();
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);
@ -131,7 +132,6 @@ private:
void setDefaultVars();
void setDefaultAnimationVars();
void setDeviceDefaultVars(const std::string&);
void ensureDPMS();
void setAnimForChildren(SAnimationPropertyConfig *const);

View file

@ -591,7 +591,7 @@ void HyprCtl::tickHyprCtl() {
requestReady = true;
if (g_pConfigManager->m_bWantsMonitorReload) {
g_pConfigManager->performMonitorReload(); // will unset
g_pConfigManager->ensureDPMS();
}
}