unsetenv on no XWayland

This commit is contained in:
Vaxry 2022-10-11 11:59:57 +01:00
parent 7ffe4eda12
commit 7ecc41db9c
1 changed files with 2 additions and 0 deletions

View File

@ -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
}
}