From 21e9313c100e005ec2a9a5100c29258a2885546b Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 1 Nov 2023 18:53:36 +0000 Subject: Core: various unsafe state improvements (#3713) Fixes #3637 --- src/Compositor.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Compositor.hpp') diff --git a/src/Compositor.hpp b/src/Compositor.hpp index ae536c91..59fc9136 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -121,7 +121,8 @@ class CCompositor { bool m_bSessionActive = true; bool m_bDPMSStateON = true; bool m_bUnsafeState = false; // unsafe state is when there is no monitors. - wlr_output* m_pUnsafeOutput = nullptr; // fallback output for the unsafe state + bool m_bNextIsUnsafe = false; // because wlroots + CMonitor* m_pUnsafeOutput = nullptr; // fallback output for the unsafe state bool m_bIsShuttingDown = false; // ------------------------------------------------- // @@ -215,6 +216,7 @@ class CCompositor { void initAllSignals(); void setRandomSplash(); void initManagers(eManagersInitStage stage); + void prepareFallbackOutput(); uint64_t m_iHyprlandPID = 0; }; -- cgit v1.2.3