diff options
author | Michal Klocek <michal.klocek@qt.io> | 2016-11-08 12:46:56 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2016-12-20 16:26:40 +0000 |
commit | 3473a3435223a77eda7163ffa6647a0035c01fca (patch) | |
tree | 8f1ef1c493bc00c3682c0ad0abc6be5edb396080 /src | |
parent | b32242eeca3ad1c4f8897c9aa7ee8c04c0d61e58 (diff) |
Warn on wayland if compiled with x11 support, however no xwayland
Add a warning message for builds with aura and x11, when run on wayland
wihout xwayland support. This will be fixed properly in 55-based.
Change-Id: I7482c7989087b5702634aff5d43409ae8728cd94
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/web_engine_context.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 152859bee..b88f6308f 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -249,6 +249,13 @@ WebEngineContext::WebEngineContext() , m_browserRunner(content::BrowserMainRunner::Create()) , m_globalQObject(new QObject()) { +#if defined(USE_X11) + QString platform = qApp->platformName(); + if (platform != QLatin1String("xcb")) { + qWarning("WebEngine compiled with X11 support, however qpa backend is not xcb. " + "This may fail."); + } +#endif #ifdef Q_OS_LINUX // Call qputenv before BrowserMainRunnerImpl::Initialize is called. |