From e01b81339a37830c48f2cec0583e5d0aba592601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Tue, 11 Aug 2015 16:07:23 +0200 Subject: Remove QtWayland::Surface Its enough to have QWaylandSurface and QWaylandSurfacePrivate. Also don't pass QWaylandSurfacePrivate around, but pass QWaylandSurface and then use the QWaylandSurfacePrivate::get function. Change-Id: I915cc9d7b4497ad1c6f1f2dee61d9d0db069ba6b --- src/compositor/extensions/qwlextendedsurface_p.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/compositor/extensions/qwlextendedsurface_p.h') diff --git a/src/compositor/extensions/qwlextendedsurface_p.h b/src/compositor/extensions/qwlextendedsurface_p.h index f666c44a3..052ecf5e4 100644 --- a/src/compositor/extensions/qwlextendedsurface_p.h +++ b/src/compositor/extensions/qwlextendedsurface_p.h @@ -40,7 +40,6 @@ #include #include -#include #include #include @@ -82,7 +81,7 @@ public: }; Q_DECLARE_FLAGS(WindowFlags, WindowFlag) - ExtendedSurface(struct wl_client *client, uint32_t id, int version, Surface *surface); + ExtendedSurface(struct wl_client *client, uint32_t id, int version, QWaylandSurface *surface); ~ExtendedSurface(); void sendGenericProperty(const QString &name, const QVariant &variant); @@ -95,7 +94,7 @@ public: ExtendedSurface *parent() const; void setParent(ExtendedSurface *parent); QLinkedList subSurfaces() const; - void setParentSurface(Surface *s); + void setParentSurface(QWaylandSurface *s); Qt::ScreenOrientations contentOrientationMask() const; @@ -109,11 +108,13 @@ Q_SIGNALS: void contentOrientationMaskChanged(); void windowFlagsChanged(); void windowPropertyChanged(const QString &name, const QVariant &value); + void raiseRequested(); + void lowerRequested(); private: void setWindowPropertyImpl(const QString &name, const QVariant &value); - Surface *m_surface; + QWaylandSurface *m_surface; Qt::ScreenOrientations m_contentOrientationMask; -- cgit v1.2.3