summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandwlshell.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-05-23 13:12:38 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-05-31 15:13:03 +0000
commit80f6abcfc2105bd5f91cde03c0eeadf237d68032 (patch)
treef91a47eaf8ef5a8acfabdfb266c00d0f20d27efd /src/compositor/extensions/qwaylandwlshell.cpp
parent58bfe9d9b51786792d5b7af8a90698af87207ad1 (diff)
Compositor API: Add shell property to QWaylandWlShellSurface
Change-Id: I29467cc05ee79f7eb429bb5424879394a01bc242 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Diffstat (limited to 'src/compositor/extensions/qwaylandwlshell.cpp')
-rw-r--r--src/compositor/extensions/qwaylandwlshell.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandwlshell.cpp b/src/compositor/extensions/qwaylandwlshell.cpp
index 4e9937680..90f591956 100644
--- a/src/compositor/extensions/qwaylandwlshell.cpp
+++ b/src/compositor/extensions/qwaylandwlshell.cpp
@@ -402,6 +402,7 @@ void QWaylandWlShellSurface::initialize(QWaylandWlShell *shell, QWaylandSurface
d->init(resource.resource());
setExtensionContainer(surface);
emit surfaceChanged();
+ emit shellChanged();
QWaylandCompositorExtension::initialize();
}
@@ -518,6 +519,12 @@ QWaylandSurface *QWaylandWlShellSurface::surface() const
return d->m_surface;
}
+QWaylandWlShell *QWaylandWlShellSurface::shell() const
+{
+ Q_D(const QWaylandWlShellSurface);
+ return d->m_shell;
+}
+
/*!
* \enum QWaylandWlShellSurface::FocusPolicy
*