summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlsurface.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-01-25 14:37:22 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-02-01 15:11:56 +0100
commitde7e097bbb1d29db63d70bfb1e3a03c5253316fd (patch)
tree0afb04c51d0d94dbc76b11291f8655a5158eeb2a /src/compositor/wayland_wrapper/wlsurface.cpp
parentaf9010004a410de60ca44005b261361aff004395 (diff)
Added reporting of window and content orientation to surface extension.
Change-Id: I6e182c048282f5edd30f49be19dcc0f020679b85 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurface.cpp')
-rw-r--r--src/compositor/wayland_wrapper/wlsurface.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.cpp b/src/compositor/wayland_wrapper/wlsurface.cpp
index b85a54004..107a726c9 100644
--- a/src/compositor/wayland_wrapper/wlsurface.cpp
+++ b/src/compositor/wayland_wrapper/wlsurface.cpp
@@ -612,6 +612,18 @@ void Surface::setWindowProperty(const QString &name, const QVariant &value, bool
}
}
+Qt::ScreenOrientation Surface::windowOrientation() const
+{
+ Q_D(const Surface);
+ return d->extendedSurface ? d->extendedSurface->windowOrientation() : Qt::PrimaryOrientation;
+}
+
+Qt::ScreenOrientation Surface::contentOrientation() const
+{
+ Q_D(const Surface);
+ return d->extendedSurface ? d->extendedSurface->contentOrientation() : Qt::PrimaryOrientation;
+}
+
QPoint Surface::lastMousePos() const
{
Q_D(const Surface);