summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-07-27 00:26:51 +0200
committerVolker Krause <[email protected]>2017-07-27 00:26:51 +0200
commit28b5c00b56d6810694d0afb56f65713198232107 (patch)
tree038571b9a6c47d18e02fda6be7430c1975d356da
parentd1de5b19e3cae662fb9e4d7fd3ecce970428285e (diff)
QtWebEngine supports Wayland starting with Qt 5.9
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 922d628..b80b198 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -80,7 +80,7 @@ int Application::activate(const QStringList &args, const QString &workingDir)
int main(int argc, char **argv)
{
//Fix QtWebEngine + wayland
-#ifdef Q_OS_UNIX
+#if defined(Q_OS_UNIX) && QT_VERSION < QT_VERSION_CHECK(5, 9, 0)
qputenv("QT_QPA_PLATFORM", "xcb");
#endif
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);