summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandshmbackingstore.cpp
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2014-06-16 10:37:37 +0300
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-06-16 14:04:02 +0200
commitaa16e0f762e2c5e5a6321e5ce8e9014ecb19be7d (patch)
treee0b76688e2fe3d6f25f3e083b3c69b4d2a6a357f /src/client/qwaylandshmbackingstore.cpp
parentb564681db53593fbbb97ed1dfbe165d66cde6bdc (diff)
Reduce headers inter-dependency in the QPA plugin
Change-Id: I8b810e54531453b6a80250555c21bb0b1e6e76cc Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/client/qwaylandshmbackingstore.cpp')
-rw-r--r--src/client/qwaylandshmbackingstore.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp
index 41f7da200..0677ed0d3 100644
--- a/src/client/qwaylandshmbackingstore.cpp
+++ b/src/client/qwaylandshmbackingstore.cpp
@@ -290,6 +290,24 @@ void QWaylandShmBackingStore::updateDecorations()
decorationPainter.drawImage(target, sourceImage, target);
}
+QWaylandDecoration *QWaylandShmBackingStore::windowDecoration() const
+{
+ return waylandWindow()->decoration();
+}
+
+QMargins QWaylandShmBackingStore::windowDecorationMargins() const
+{
+ if (windowDecoration())
+ return windowDecoration()->margins();
+ return QMargins();
+}
+
+QWaylandShmWindow *QWaylandShmBackingStore::waylandWindow() const
+{
+ return static_cast<QWaylandShmWindow *>(window()->handle());
+}
+
+
void QWaylandShmBackingStore::done(void *data, wl_callback *callback, uint32_t time)
{
Q_UNUSED(time);