Commit ed793dca authored by David Edmundson's avatar David Edmundson Committed by Vlad Zahorodnii
Browse files

Add option to enable XWayland debug

parent 230b560f
...@@ -128,6 +128,9 @@ void Xwayland::start() ...@@ -128,6 +128,9 @@ void Xwayland::start()
QProcessEnvironment env = m_app->processStartupEnvironment(); QProcessEnvironment env = m_app->processStartupEnvironment();
env.insert("WAYLAND_SOCKET", QByteArray::number(wlfd)); env.insert("WAYLAND_SOCKET", QByteArray::number(wlfd));
env.insert("EGL_PLATFORM", QByteArrayLiteral("DRM")); env.insert("EGL_PLATFORM", QByteArrayLiteral("DRM"));
if (qEnvironmentVariableIsSet("KWIN_XWAYLAND_DEBUG")) {
env.insert("WAYLAND_DEBUG", QByteArrayLiteral("1"));
}
m_xwaylandProcess->setProcessEnvironment(env); m_xwaylandProcess->setProcessEnvironment(env);
m_xwaylandProcess->setArguments({QStringLiteral("-displayfd"), m_xwaylandProcess->setArguments({QStringLiteral("-displayfd"),
QString::number(pipeFds[1]), QString::number(pipeFds[1]),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment