diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-28 11:19:08 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-28 11:19:08 +0200 |
| commit | d413388761c85c1bd153a4bbf8b6f96189cd416a (patch) | |
| tree | 2d073c24292f5ecd94c0b441864bf8b1306fc4e5 /src/main.cpp | |
| parent | 4203a61b69f5ee31d142920b5ef0b652d7bbb143 (diff) | |
Multiple improvements to the shutdown procedure
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
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; |
