summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland_common/qwaylandsubsurface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland_common/qwaylandsubsurface.h')
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandsubsurface.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/plugins/platforms/wayland_common/qwaylandsubsurface.h b/src/plugins/platforms/wayland_common/qwaylandsubsurface.h
index e594050ec..7b0fd5b3f 100644
--- a/src/plugins/platforms/wayland_common/qwaylandsubsurface.h
+++ b/src/plugins/platforms/wayland_common/qwaylandsubsurface.h
@@ -46,34 +46,24 @@
#include <QtCore/qglobal.h>
+#include <qwayland-sub-surface-extension.h>
+
QT_BEGIN_NAMESPACE
class QWaylandDisplay;
class QWaylandWindow;
class QWaylandSubSurface;
-class QWaylandSubSurfaceExtension
-{
-public:
- QWaylandSubSurfaceExtension(QWaylandDisplay *display, uint32_t id);
-
- QWaylandSubSurface *getSubSurfaceAwareWindow(QWaylandWindow *window);
-private:
- struct wl_sub_surface_extension *m_sub_surface_extension;
-};
-
-class QWaylandSubSurface
+class QWaylandSubSurface : public QtWayland::wl_sub_surface
{
public:
- QWaylandSubSurface(QWaylandWindow *window, struct wl_sub_surface *sub_surface);
+ QWaylandSubSurface(QWaylandWindow *window, struct ::wl_sub_surface *sub_surface);
void setParent(const QWaylandWindow *parent);
-
void adjustPositionOfChildren();
private:
QWaylandWindow *m_window;
- struct wl_sub_surface *m_sub_surface;
};
QT_END_NAMESPACE