From d413388761c85c1bd153a4bbf8b6f96189cd416a Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Aug 2022 11:19:08 +0200 Subject: Multiple improvements to the shutdown procedure --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b131e59a..4c61f380 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,6 +62,11 @@ int main(int argc, char** argv) { Debug::log(LOG, "Hyprland reached the end."); wl_display_destroy_clients(g_pCompositor->m_sWLDisplay); + + // kill all clients + for (auto& c : g_pCompositor->m_dProcessPIDsOnShutdown) + kill(c, SIGKILL); + wl_display_destroy(g_pCompositor->m_sWLDisplay); return EXIT_SUCCESS; -- cgit v1.2.3