on xenial help sign in
Use ApplicationManager.topmostApplication instead of SurfaceManager.topmostSurface
commit7038057984c03a3e77395970681f576fd846e237 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 27 May 2014, 16:02 (12 years ago) parent56e7311
1 file changed+2−2
qml/Shell.qml+2−2
qml/Shell.qml+2−2
@@ -39,8 +39,8 @@ FocusScope {
3939 property int orientationAngle
4040
4141 property int supportedScreenOrientations: {
42− if (stages.shown && SurfaceManager.topmostSurface) {
43− return SurfaceManager.topmostSurface.application.supportedOrientations;
42+ if (stages.shown && ApplicationManager.topmostApplication) {
43+ return ApplicationManager.topmostApplication.supportedOrientations;
4444 } else {
4545 return Qt.PortraitOrientation
4646 | Qt.InvertedPortraitOrientation