diff options
author | Giulio Camuffo <giulio.camuffo@kdab.com> | 2016-07-02 10:57:16 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2016-12-02 15:23:19 +0000 |
commit | 542c6392ca52f86bd5fffb6141e93ad2a1ab8fcb (patch) | |
tree | f8d7b711890db3b8857c90914589186985241b64 /src/client/qwaylandintegration.cpp | |
parent | 74e146ac208dcbfc34c99d903e9827ef2b932046 (diff) |
Add xdg_shell_v6 support for Qt clients
Task-number: QTBUG-56174
Change-Id: I6610905d0c9f29be29e812bcac193ea2a7e4f107
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/client/qwaylandintegration.cpp')
-rw-r--r-- | src/client/qwaylandintegration.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp index 748f4f29c..0dcd6b68f 100644 --- a/src/client/qwaylandintegration.cpp +++ b/src/client/qwaylandintegration.cpp @@ -77,6 +77,7 @@ #include "qwaylandshellintegrationfactory_p.h" #include "qwaylandxdgshellintegration_p.h" #include "qwaylandwlshellintegration_p.h" +#include "qwaylandxdgshellv6integration_p.h" #include "qwaylandinputdeviceintegration_p.h" #include "qwaylandinputdeviceintegrationfactory_p.h" @@ -382,8 +383,10 @@ void QWaylandIntegration::initializeShellIntegration() } } else { QStringList preferredShells; + preferredShells << QLatin1String("zxdg_shell_v6"); if (qEnvironmentVariableIsSet("QT_WAYLAND_USE_XDG_SHELL")) preferredShells << QLatin1String("xdg_shell"); + preferredShells << QLatin1String("wl_shell"); Q_FOREACH (QString preferredShell, preferredShells) { @@ -432,6 +435,8 @@ QWaylandShellIntegration *QWaylandIntegration::createShellIntegration(const QStr return new QWaylandWlShellIntegration(mDisplay.data()); } else if (interfaceName == QLatin1Literal("xdg_shell")) { return new QWaylandXdgShellIntegration(mDisplay.data()); + } else if (interfaceName == QLatin1Literal("zxdg_shell_v6")) { + return new QWaylandXdgShellV6Integration(mDisplay.data()); } else { return Q_NULLPTR; } |