From 422eaad4201fe1902f037898e98d8651925b9c13 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 21 Apr 2022 15:59:28 +0200 Subject: handle term and int signals and cleanup --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 57016425..7cbef959 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,8 +22,7 @@ int main(int argc, char** argv) { // If we are here it means we got yote. Debug::log(LOG, "Hyprland reached the end."); - wl_display_destroy_clients(g_pCompositor->m_sWLDisplay); - wl_display_destroy(g_pCompositor->m_sWLDisplay); + g_pCompositor->cleanupExit(); return EXIT_SUCCESS; } -- cgit v1.2.3