summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandwlshellintegration.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-11-22 13:37:10 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2016-12-06 08:42:44 +0000
commite2f856d9da896c202d98b179b9482fe7e7b57222 (patch)
treed9b79e62827a2eae39c819f8a963a7637a3e620c /src/client/qwaylandwlshellintegration.cpp
parent542c6392ca52f86bd5fffb6141e93ad2a1ab8fcb (diff)
Deprecate QT_WAYLAND_USE_XDG_SHELL
In favor of QT_WAYLAND_SHELL_INTEGRATION, which can be set to: - ivi-shell - wl-shell - xdg-shell-v5 - xdg-shell-v6 Change-Id: Ie2ca1184f22dcac56beb441329ea8b5a9a81baf4 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/client/qwaylandwlshellintegration.cpp')
-rw-r--r--src/client/qwaylandwlshellintegration.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/qwaylandwlshellintegration.cpp b/src/client/qwaylandwlshellintegration.cpp
index ce7c78346..8d61201bd 100644
--- a/src/client/qwaylandwlshellintegration.cpp
+++ b/src/client/qwaylandwlshellintegration.cpp
@@ -41,6 +41,13 @@ QT_BEGIN_NAMESPACE
namespace QtWaylandClient {
+QWaylandWlShellIntegration *QWaylandWlShellIntegration::create(QWaylandDisplay *display)
+{
+ if (display->hasRegistryGlobal(QLatin1String("wl_shell")))
+ return new QWaylandWlShellIntegration(display);
+ return nullptr;
+}
+
QWaylandWlShellIntegration::QWaylandWlShellIntegration(QWaylandDisplay *display)
: m_wlShell(Q_NULLPTR)
{