[wayland] Enforce our internal QPA plugin as QT_QPA_PLATFORM

This commit is contained in:
Martin Gräßlin 2015-08-18 08:05:08 +02:00
parent 26b3569a0b
commit 4851470ff9

View file

@ -449,8 +449,8 @@ int main(int argc, char * argv[])
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
environment.insert(QStringLiteral("WAYLAND_DISPLAY"), server->display()->socketName());
// enforce wayland plugin, unfortunately command line switch has precedence
setenv("QT_QPA_PLATFORM", "wayland", true);
// enforce our internal qpa plugin, unfortunately command line switch has precedence
setenv("QT_QPA_PLATFORM", "wayland-org.kde.kwin.qpa", true);
#if (QT_VERSION < QT_VERSION_CHECK(5, 4, 2))
// TODO: remove warning once we depend on Qt 5.5
qWarning() << "QtWayland 5.4.2 required, application might freeze if not present!";