summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2023-09-24 18:04:38 +0100
committerGitHub <noreply@github.com>2023-09-24 18:04:38 +0100
commit46d66f4bcc95d9fb7fede18ad5c2c043796b9071 (patch)
tree0631539b1c73ff76cf72fb1d9668f0adcd49b135 /src/config/ConfigManager.cpp
parent352ceb1117b79cd0bc3fa86ebe435b6909512ddb (diff)
internal: Further unsafe state improvements (#3404)
Instead of allowing Hyprland to sit in a state where there are no monitors, which various parts of the code don't like, we create a fake headless output on all monitor disconnect, and then remove it when a monitor appears
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index ceff4414..3d231dbd 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -2020,9 +2020,6 @@ 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;
EMIT_HOOK_EVENT("monitorLayoutChanged", nullptr);