aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main.cpp
diff options
context:
space:
mode:
authorIkalco <[email protected]>2024-07-24 12:07:36 -0500
committerGitHub <[email protected]>2024-07-24 19:07:36 +0200
commit3e543d2ce8ba64abb4d226dbb88c4513474501cf (patch)
treed340935c65520e293a73623c148219993e38779b /src/main.cpp
parent735e3c6c56d22059ee6340c0327e4b5a9154f013 (diff)
downloadHyprland-3e543d2ce8ba64abb4d226dbb88c4513474501cf.tar.gz
Hyprland-3e543d2ce8ba64abb4d226dbb88c4513474501cf.zip
core: Properly shutdown wl display (#7018)
* correctly destroy wayland globals * properly shutdown and cleanup hyprland * appease the nitpick gods and some comments
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3e51c6c8..e85b0a22 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -157,11 +157,9 @@ int main(int argc, char** argv) {
// If all's good to go, start.
g_pCompositor->startCompositor();
- g_pCompositor->m_bIsShuttingDown = true;
+ g_pCompositor->cleanup();
- // If we are here it means we got yote.
- Debug::log(LOG, "Hyprland reached the end.");
- g_pCompositor.reset();
+ Debug::log(LOG, "Hyprland has reached the end.");
return EXIT_SUCCESS;
}