aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-10-11 11:59:57 +0100
committervaxerski <[email protected]>2022-10-11 12:00:06 +0100
commit7ecc41db9cd70a9e97c77945c75bf67a73323842 (patch)
treebe93abbf31908cdd707f61354e4f56ce43c3f990
parent7ffe4eda12e855c8ea0c554699160d8e8a4e4d36 (diff)
downloadHyprland-7ecc41db9cd70a9e97c77945c75bf67a73323842.tar.gz
Hyprland-7ecc41db9cd70a9e97c77945c75bf67a73323842.zip
unsetenv on no XWayland
-rw-r--r--src/managers/XWaylandManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index f3f301da..6d8b24fe 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -17,6 +17,8 @@ CHyprXWaylandManager::CHyprXWaylandManager() {
setenv("DISPLAY", m_sWLRXWayland->display_name, 1);
Debug::log(LOG, "CHyprXWaylandManager started on display %s", m_sWLRXWayland->display_name);
+ } else {
+ unsetenv("DISPLAY"); // unset DISPLAY so that X11 apps do not try to start on a different/invalid DISPLAY
}
}