mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:06:01 +01:00
minor changes to unsafe state handling
This commit is contained in:
parent
10d34ef818
commit
a2a12018d9
1 changed files with 4 additions and 2 deletions
|
@ -1263,9 +1263,8 @@ void CConfigManager::loadConfigLoadVars() {
|
||||||
// and they'll be taken care of in the newMonitor event
|
// and they'll be taken care of in the newMonitor event
|
||||||
// ignore if nomonitorreload is set
|
// ignore if nomonitorreload is set
|
||||||
if (!isFirstLaunch && !m_bNoMonitorReload) {
|
if (!isFirstLaunch && !m_bNoMonitorReload) {
|
||||||
m_bWantsMonitorReload = true;
|
|
||||||
|
|
||||||
// check
|
// check
|
||||||
|
performMonitorReload();
|
||||||
ensureDPMS();
|
ensureDPMS();
|
||||||
ensureVRR();
|
ensureVRR();
|
||||||
}
|
}
|
||||||
|
@ -1576,6 +1575,9 @@ void CConfigManager::performMonitorReload() {
|
||||||
if (overAgain)
|
if (overAgain)
|
||||||
performMonitorReload();
|
performMonitorReload();
|
||||||
|
|
||||||
|
if (!g_pCompositor->m_vMonitors.empty()) // reset unsafe state if we have monitors
|
||||||
|
g_pCompositor->m_bUnsafeState = false;
|
||||||
|
|
||||||
m_bWantsMonitorReload = false;
|
m_bWantsMonitorReload = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue