Do not set QSG_RENDER_LOOP Variable

This leaks to other processes that are started by KWin.
The QPA sets ThreadedOpenGL capability to false which suffices
to use the basic render loop with OpenGL.
This commit is contained in:
David Redondo 2023-11-15 10:38:15 +01:00
parent 36edf7cb4f
commit 6befc5d11b

View file

@ -273,7 +273,6 @@ int main(int argc, char *argv[])
setenv("QT_QPA_PLATFORM", "wayland-org.kde.kwin.qpa", true); setenv("QT_QPA_PLATFORM", "wayland-org.kde.kwin.qpa", true);
qunsetenv("QT_DEVICE_PIXEL_RATIO"); qunsetenv("QT_DEVICE_PIXEL_RATIO");
qputenv("QSG_RENDER_LOOP", "basic");
KWin::ApplicationWayland a(argc, argv); KWin::ApplicationWayland a(argc, argv);
// reset QT_QPA_PLATFORM so we don't propagate it to our children (e.g. apps launched from the overview effect) // reset QT_QPA_PLATFORM so we don't propagate it to our children (e.g. apps launched from the overview effect)