mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:09:50 +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) {
|
||||
// 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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue