summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorMykola Perehudov <nexec@users.noreply.github.com>2023-07-06 16:24:49 +0300
committerGitHub <noreply@github.com>2023-07-06 15:24:49 +0200
commit41358c6fb579e440ccb72bb79a7bfb859944b3a6 (patch)
tree413a7260db30431de33486a110ea090866f99eed /src/Compositor.cpp
parentbbedb065e1fbb39bc6bdbd66b61c48fcff4a17a4 (diff)
Cleanup compositor deadcode (#2657)
* Remove dead code as it is a part of CCompositor::cleanup * Unify sd_notify logic with Compositor lifetime
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index b15414e1..ae3ef109 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -310,6 +310,11 @@ void CCompositor::cleanup() {
m_bIsShuttingDown = true;
+#ifdef USES_SYSTEMD
+ if (sd_booted() > 0)
+ sd_notify(0, "STOPPING=1");
+#endif
+
// unload all remaining plugins while the compositor is
// still in a normal working state.
g_pPluginSystem->unloadAllPlugins();