From 46d66f4bcc95d9fb7fede18ad5c2c043796b9071 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 24 Sep 2023 18:04:38 +0100 Subject: 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 --- src/config/ConfigManager.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/config/ConfigManager.cpp') 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); -- cgit v1.2.3