aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-09-24 18:04:38 +0100
committerGitHub <[email protected]>2023-09-24 18:04:38 +0100
commit46d66f4bcc95d9fb7fede18ad5c2c043796b9071 (patch)
tree0631539b1c73ff76cf72fb1d9668f0adcd49b135 /src/helpers
parent352ceb1117b79cd0bc3fa86ebe435b6909512ddb (diff)
downloadHyprland-46d66f4bcc95d9fb7fede18ad5c2c043796b9071.tar.gz
Hyprland-46d66f4bcc95d9fb7fede18ad5c2c043796b9071.zip
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/helpers')
-rw-r--r--src/helpers/Monitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 97a8fe20..dd9580d1 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -243,7 +243,7 @@ void CMonitor::onDisconnect() {
if (!BACKUPMON) {
Debug::log(WARN, "Unplugged last monitor, entering an unsafe state. Good luck my friend.");
- g_pCompositor->m_bUnsafeState = true;
+ g_pCompositor->enterUnsafeState();
}
if (BACKUPMON) {