diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-17 19:26:10 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-17 19:26:25 +0000 |
| commit | f88deb928a0f7dc02f427473f8c29e8f2bed14a3 (patch) | |
| tree | c860f3c984c662d059497226ca19e4d50a3b5af6 /src/Compositor.cpp | |
| parent | 18901b8e593ebd05a7134dcdb8a7774206cf5646 (diff) | |
compositor: warn on start via a log about start-hyprland
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 00e5a2d8..f4e92ee9 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -142,8 +142,9 @@ static void aqLog(Aquamarine::eBackendLogLevel level, std::string msg) { Debug::log(aqLevelToHl(level), "[AQ] {}", msg); } -void CCompositor::setWatchdogFd(int fd) { +bool CCompositor::setWatchdogFd(int fd) { m_watchdogWriteFd = Hyprutils::OS::CFileDescriptor{fd}; + return m_watchdogWriteFd.isValid() && !m_watchdogWriteFd.isClosed(); } void CCompositor::bumpNofile() { |
