summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-28 11:19:08 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-28 11:19:08 +0200
commitd413388761c85c1bd153a4bbf8b6f96189cd416a (patch)
tree2d073c24292f5ecd94c0b441864bf8b1306fc4e5 /src/main.cpp
parent4203a61b69f5ee31d142920b5ef0b652d7bbb143 (diff)
Multiple improvements to the shutdown procedure
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
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;