internal: rename ensureDPMS to ensureMonitorStatus

This commit is contained in:
vaxerski 2023-04-03 22:52:09 +01:00
parent a43b18ae26
commit d3b0c90356
3 changed files with 4 additions and 4 deletions

View file

@ -1387,7 +1387,7 @@ void CConfigManager::loadConfigLoadVars() {
if (!isFirstLaunch && !m_bNoMonitorReload) {
// check
performMonitorReload();
ensureDPMS();
ensureMonitorStatus();
ensureVRR();
}
@ -1791,7 +1791,7 @@ bool CConfigManager::shouldBlurLS(const std::string& ns) {
return false;
}
void CConfigManager::ensureDPMS() {
void CConfigManager::ensureMonitorStatus() {
for (auto& rm : g_pCompositor->m_vRealMonitors) {
if (!rm->output)
continue;

View file

@ -171,7 +171,7 @@ class CConfigManager {
bool m_bWantsMonitorReload = false;
bool m_bForceReload = false;
bool m_bNoMonitorReload = false;
void ensureDPMS();
void ensureMonitorStatus();
void ensureVRR(CMonitor* pMonitor = nullptr);
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);

View file

@ -1290,7 +1290,7 @@ int hyprCtlFDTick(int fd, uint32_t mask, void* data) {
close(ACCEPTEDCONNECTION);
if (g_pConfigManager->m_bWantsMonitorReload) {
g_pConfigManager->ensureDPMS();
g_pConfigManager->ensureMonitorStatus();
}
return 0;