diff --git a/src/sokit/main.cpp b/src/sokit/main.cpp index bbda7b0..d9a3b0a 100644 --- a/src/sokit/main.cpp +++ b/src/sokit/main.cpp @@ -185,6 +185,10 @@ void Sokit::ontop() int main(int argc, char *argv[]) { + if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) { + qunsetenv("XDG_SESSION_TYPE"); + qEnvironmentVariable("QT_QPA_PLATFORM", "wayland"); + } Sokit a(argc, argv); if (a.initUI())