diff --git a/ksmserver/logout-greeter/main.cpp b/ksmserver/logout-greeter/main.cpp --- a/ksmserver/logout-greeter/main.cpp +++ b/ksmserver/logout-greeter/main.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "../shutdowndlg.h" #include @@ -163,8 +164,10 @@ int main(int argc, char *argv[]) { - // Qt does not currently (5.9.4) support fullscreen on xdg_shell v6. - qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); + if (QLibraryInfo::version() < QVersionNumber(5, 12)) { + // Before Qt 5.12, the xdg-shell v6 integration does not support fullscreen. + qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); + } QQuickWindow::setDefaultAlphaBuffer(true); QApplication app(argc, argv); diff --git a/ksmserver/switchuser-greeter/main.cpp b/ksmserver/switchuser-greeter/main.cpp --- a/ksmserver/switchuser-greeter/main.cpp +++ b/ksmserver/switchuser-greeter/main.cpp @@ -25,6 +25,7 @@ #include #include +#include #include "../switchuserdialog.h" @@ -135,8 +136,10 @@ int main(int argc, char *argv[]) { - // Qt does not currently (5.9.4) support fullscreen on xdg_shell v6. - qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); + if (QLibraryInfo::version() < QVersionNumber(5, 12)) { + // Before Qt 5.12, the xdg-shell v6 integration does not support fullscreen. + qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); + } QQuickWindow::setDefaultAlphaBuffer(true); QGuiApplication app(argc, argv);