summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandxdgshell.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-08-05 10:10:58 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-08-09 10:58:10 +0000
commitb3b4778c237c43cfde02c4750017c37112c315c4 (patch)
tree9e9d8e01aa485386d2dd5b8a652ec0b17ca5d3ec /src/client/qwaylandxdgshell.cpp
parent1db3dee9432f28f35ec9c971444b8a889bbdd6e2 (diff)
Make wl_shell and xdg_shell use the QWaylandShellIntegration interface
This simplifies the code in QWaylandDisplay and hopefully makes it easier to implement a prioritized shell selection mechanism later. Change-Id: I2bb3a13f8acedb60a6606cb3a8b5b228095eadf9 Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/client/qwaylandxdgshell.cpp')
-rw-r--r--src/client/qwaylandxdgshell.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/qwaylandxdgshell.cpp b/src/client/qwaylandxdgshell.cpp
index 65fafcead..9b351da6a 100644
--- a/src/client/qwaylandxdgshell.cpp
+++ b/src/client/qwaylandxdgshell.cpp
@@ -37,6 +37,7 @@
#include "qwaylandwindow_p.h"
#include "qwaylandinputdevice_p.h"
#include "qwaylandscreen_p.h"
+#include "qwaylandxdgsurface_p.h"
#include <QtCore/QDebug>
@@ -60,6 +61,10 @@ QWaylandXdgShell::~QWaylandXdgShell()
xdg_shell_destroy(object());
}
+QWaylandXdgSurface *QWaylandXdgShell::createXdgSurface(QWaylandWindow *window)
+{
+ return new QWaylandXdgSurface(this, window);
+}
void QWaylandXdgShell::xdg_shell_ping(uint32_t serial)
{