diff options
author | Michael BrĂ¼ning <michael.bruning@qt.io> | 2018-12-14 13:15:31 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-12-18 15:58:19 +0100 |
commit | 50fac0d1d7e82f2423e0a3e557b4a1f30be5bf33 (patch) | |
tree | b085f03fdafa4ecbcfcb5a96b68404e155879b6a /src/core/ozone | |
parent | 8124f0bc1893e0997989913044665fa1c5cf79d7 (diff) | |
parent | 4f1e0003d98116e33a847360e0e95c46daae25fc (diff) |
Merge remote-tracking branch 'origin/5.12' into dev
Conflicts:
src/core/compositor/delegated_frame_node.cpp
src/core/profile_adapter.cpp
src/core/profile_io_data_qt.cpp
src/webengine/api/qquickwebengineprofile.cpp
src/webenginewidgets/api/qwebengineprofile.cpp
Change-Id: I35ec8480e758bbcb6c5942a5401cb1b6dbdcc428
Diffstat (limited to 'src/core/ozone')
-rw-r--r-- | src/core/ozone/gl_context_qt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ozone/gl_context_qt.cpp b/src/core/ozone/gl_context_qt.cpp index 18181d310..7e913817e 100644 --- a/src/core/ozone/gl_context_qt.cpp +++ b/src/core/ozone/gl_context_qt.cpp @@ -130,8 +130,9 @@ void* GLContextHelper::getEGLDisplay() void* GLContextHelper::getXDisplay() { - return qApp->platformNativeInterface()->nativeResourceForScreen( - QByteArrayLiteral("display"), qApp->primaryScreen()); + if (QGuiApplication::platformName() != QLatin1String("xcb")) + return nullptr; + return qApp->platformNativeInterface()->nativeResourceForScreen(QByteArrayLiteral("display"), qApp->primaryScreen()); } void* GLContextHelper::getNativeDisplay() |