diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index c3a5efe1..986de55e 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -641,11 +641,6 @@ void CKeybindManager::spawn(std::string args) { args = args.substr(args.find_first_of(']') + 1); } - if (g_pXWaylandManager->m_sWLRXWayland) - args = "WAYLAND_DISPLAY=" + std::string(g_pCompositor->m_szWLDisplaySocket) + " DISPLAY=" + std::string(g_pXWaylandManager->m_sWLRXWayland->display_name) + " " + args; - else - args = "WAYLAND_DISPLAY=" + std::string(g_pCompositor->m_szWLDisplaySocket) + " " + args; - const uint64_t PROC = spawnRaw(args); if (!RULES.empty()) {