summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/waylandsurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/compositor_api/waylandsurface.cpp')
-rw-r--r--src/compositor/compositor_api/waylandsurface.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/compositor/compositor_api/waylandsurface.cpp b/src/compositor/compositor_api/waylandsurface.cpp
index 9179f55f2..33032e034 100644
--- a/src/compositor/compositor_api/waylandsurface.cpp
+++ b/src/compositor/compositor_api/waylandsurface.cpp
@@ -85,7 +85,6 @@ public:
WaylandSurface::WaylandSurface(Wayland::Surface *surface)
: QObject(*new WaylandSurfacePrivate(surface))
{
- connect(this, SIGNAL(windowOrientationChanged()), this, SIGNAL(windowRotationChanged()));
}
WaylandClient *WaylandSurface::client() const
@@ -175,32 +174,6 @@ Qt::ScreenOrientation WaylandSurface::contentOrientation() const
return d->surface->extendedSurface()->contentOrientation();
}
-Qt::ScreenOrientation WaylandSurface::windowOrientation() const
-{
- Q_D(const WaylandSurface);
- if (!d->surface->extendedSurface())
- return Qt::PrimaryOrientation;
- return d->surface->extendedSurface()->windowOrientation();
-}
-
-/*!
- \property windowRotation
-
- Convenience property to get the rotation required to map the surface to the screen
- based on its windowOrientation.
- */
-int WaylandSurface::windowRotation() const
-{
- QRect geometry = compositor()->outputGeometry();
- Qt::ScreenOrientation compositorOrientation = geometry.width() >= geometry.height() ? Qt::LandscapeOrientation : Qt::PortraitOrientation;
- Qt::ScreenOrientation wOrientation = windowOrientation();
-
- if (wOrientation == Qt::PrimaryOrientation)
- return 0;
-
- return QGuiApplication::primaryScreen()->angleBetween(wOrientation, compositorOrientation);
-}
-
WaylandSurface::WindowFlags WaylandSurface::windowFlags() const
{
Q_D(const WaylandSurface);