diff options
author | Ikalco <[email protected]> | 2024-05-08 12:11:08 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-08 18:11:08 +0100 |
commit | 6a988d9276691957f1d9138f93c2209b580cad13 (patch) | |
tree | 6ce5a434e654872949438fc764f738952f3dca28 /src/managers/XWaylandManager.cpp | |
parent | d1ad490cdaaa97d5df83d28e86f02c96107ba142 (diff) | |
download | Hyprland-6a988d9276691957f1d9138f93c2209b580cad13.tar.gz Hyprland-6a988d9276691957f1d9138f93c2209b580cad13.zip |
core: cleanup environment on exit (#5941)
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r-- | src/managers/XWaylandManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index cbfc43d8..423c45ca 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -27,7 +27,11 @@ CHyprXWaylandManager::CHyprXWaylandManager() { #endif } -CHyprXWaylandManager::~CHyprXWaylandManager() {} +CHyprXWaylandManager::~CHyprXWaylandManager() { +#ifndef NO_XWAYLAND + unsetenv("DISPLAY"); +#endif +} wlr_surface* CHyprXWaylandManager::getWindowSurface(PHLWINDOW pWindow) { if (pWindow->m_bIsX11) |