mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 22:05:58 +01:00
internal: rename ensureDPMS to ensureMonitorStatus
This commit is contained in:
parent
a43b18ae26
commit
d3b0c90356
3 changed files with 4 additions and 4 deletions
|
@ -1387,7 +1387,7 @@ void CConfigManager::loadConfigLoadVars() {
|
||||||
if (!isFirstLaunch && !m_bNoMonitorReload) {
|
if (!isFirstLaunch && !m_bNoMonitorReload) {
|
||||||
// check
|
// check
|
||||||
performMonitorReload();
|
performMonitorReload();
|
||||||
ensureDPMS();
|
ensureMonitorStatus();
|
||||||
ensureVRR();
|
ensureVRR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1791,7 +1791,7 @@ bool CConfigManager::shouldBlurLS(const std::string& ns) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfigManager::ensureDPMS() {
|
void CConfigManager::ensureMonitorStatus() {
|
||||||
for (auto& rm : g_pCompositor->m_vRealMonitors) {
|
for (auto& rm : g_pCompositor->m_vRealMonitors) {
|
||||||
if (!rm->output)
|
if (!rm->output)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -171,7 +171,7 @@ class CConfigManager {
|
||||||
bool m_bWantsMonitorReload = false;
|
bool m_bWantsMonitorReload = false;
|
||||||
bool m_bForceReload = false;
|
bool m_bForceReload = false;
|
||||||
bool m_bNoMonitorReload = false;
|
bool m_bNoMonitorReload = false;
|
||||||
void ensureDPMS();
|
void ensureMonitorStatus();
|
||||||
void ensureVRR(CMonitor* pMonitor = nullptr);
|
void ensureVRR(CMonitor* pMonitor = nullptr);
|
||||||
|
|
||||||
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);
|
std::string parseKeyword(const std::string&, const std::string&, bool dynamic = false);
|
||||||
|
|
|
@ -1290,7 +1290,7 @@ int hyprCtlFDTick(int fd, uint32_t mask, void* data) {
|
||||||
close(ACCEPTEDCONNECTION);
|
close(ACCEPTEDCONNECTION);
|
||||||
|
|
||||||
if (g_pConfigManager->m_bWantsMonitorReload) {
|
if (g_pConfigManager->m_bWantsMonitorReload) {
|
||||||
g_pConfigManager->ensureDPMS();
|
g_pConfigManager->ensureMonitorStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue