diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-02 18:45:45 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-02 18:45:45 +0000 |
| commit | a2a12018d95887646d61846d09a9d42c8c38575b (patch) | |
| tree | 2efde2ea53a10005bde29f2e90689877c7e867fe /src/config/ConfigManager.cpp | |
| parent | 10d34ef8182b63954aa9976a4e5a428a020851d6 (diff) | |
minor changes to unsafe state handling
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 735cc699..66c22318 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1263,9 +1263,8 @@ void CConfigManager::loadConfigLoadVars() { // and they'll be taken care of in the newMonitor event // ignore if nomonitorreload is set if (!isFirstLaunch && !m_bNoMonitorReload) { - m_bWantsMonitorReload = true; - // check + performMonitorReload(); ensureDPMS(); ensureVRR(); } @@ -1576,6 +1575,9 @@ void CConfigManager::performMonitorReload() { if (overAgain) performMonitorReload(); + if (!g_pCompositor->m_vMonitors.empty()) // reset unsafe state if we have monitors + g_pCompositor->m_bUnsafeState = false; + m_bWantsMonitorReload = false; } |
