diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-12-05 15:40:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-05 15:40:03 +0000 |
| commit | 016eb7a23db54cb33ed722f682c7171027a91945 (patch) | |
| tree | 47e9a200d1048a2a4d6b10fe7eae0bee4822c0a5 /src/Compositor.hpp | |
| parent | ec6756f961b5b6b12a53ec0387632e4495529f28 (diff) | |
start: init start-hyprland and safe mode (#12484)
Diffstat (limited to 'src/Compositor.hpp')
| -rw-r--r-- | src/Compositor.hpp | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/Compositor.hpp b/src/Compositor.hpp index 77627a84..af06059f 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -40,6 +40,7 @@ class CCompositor { } m_drmRenderNode; bool m_initialized = false; + bool m_safeMode = false; SP<Aquamarine::CBackend> m_aqBackend; std::string m_hyprTempDataRoot = ""; @@ -65,6 +66,7 @@ class CCompositor { void cleanup(); void bumpNofile(); void restoreNofile(); + void setWatchdogFd(int fd); bool m_readyToProcess = false; bool m_sessionActive = true; @@ -167,21 +169,23 @@ class CCompositor { std::string m_explicitConfigPath; private: - void initAllSignals(); - void removeAllSignals(); - void cleanEnvironment(); - void setRandomSplash(); - void initManagers(eManagersInitStage stage); - void prepareFallbackOutput(); - void createLockFile(); - void removeLockFile(); - void setMallocThreshold(); - - uint64_t m_hyprlandPID = 0; - wl_event_source* m_critSigSource = nullptr; - rlimit m_originalNofile = {}; - - std::vector<PHLWORKSPACEREF> m_workspaces; + void initAllSignals(); + void removeAllSignals(); + void cleanEnvironment(); + void setRandomSplash(); + void initManagers(eManagersInitStage stage); + void prepareFallbackOutput(); + void createLockFile(); + void removeLockFile(); + void setMallocThreshold(); + void openSafeModeBox(); + + uint64_t m_hyprlandPID = 0; + wl_event_source* m_critSigSource = nullptr; + rlimit m_originalNofile = {}; + Hyprutils::OS::CFileDescriptor m_watchdogWriteFd; + + std::vector<PHLWORKSPACEREF> m_workspaces; }; inline UP<CCompositor> g_pCompositor; |
