summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandextendedsurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/qwaylandextendedsurface.cpp')
-rw-r--r--src/client/qwaylandextendedsurface.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/client/qwaylandextendedsurface.cpp b/src/client/qwaylandextendedsurface.cpp
index 3155ca6b0..b2b22688c 100644
--- a/src/client/qwaylandextendedsurface.cpp
+++ b/src/client/qwaylandextendedsurface.cpp
@@ -78,22 +78,6 @@ void QWaylandExtendedSurface::updateGenericProperty(const QString &name, const Q
nativeInterface->emitWindowPropertyChanged(m_window, name);
}
-static int32_t waylandRotationFromScreenOrientation(Qt::ScreenOrientation orientation)
-{
- switch (orientation) {
- case Qt::PortraitOrientation: return QT_EXTENDED_SURFACE_ORIENTATION_PORTRAITORIENTATION;
- case Qt::InvertedPortraitOrientation: return QT_EXTENDED_SURFACE_ORIENTATION_INVERTEDPORTRAITORIENTATION;
- case Qt::LandscapeOrientation: return QT_EXTENDED_SURFACE_ORIENTATION_LANDSCAPEORIENTATION;
- case Qt::InvertedLandscapeOrientation: return QT_EXTENDED_SURFACE_ORIENTATION_INVERTEDLANDSCAPEORIENTATION;
- default: return QT_EXTENDED_SURFACE_ORIENTATION_PRIMARYORIENTATION;
- }
-}
-
-void QWaylandExtendedSurface::setContentOrientation(Qt::ScreenOrientation orientation)
-{
- set_content_orientation(waylandRotationFromScreenOrientation(orientation));
-}
-
void QWaylandExtendedSurface::setContentOrientationMask(Qt::ScreenOrientations mask)
{
int32_t wlmask = 0;