summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}